fix(dashboard): always hide cursor

This commit is contained in:
Folke Lemaitre 2024-11-18 23:54:10 +01:00
parent 4188446f86
commit 68fcc25802
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -957,7 +957,7 @@ function M.sections.terminal(opts)
win = self.win,
})
local hl = opts.hl and hl_groups[opts.hl] or opts.hl or "SnacksDashboardTerminal"
Snacks.util.wo(win, { winhighlight = "NormalFloat:" .. hl })
Snacks.util.wo(win, { winhighlight = "TermCursorNC:" .. hl .. ",NormalFloat:" .. hl })
local close = vim.schedule_wrap(function()
stopped = true
pcall(vim.api.nvim_win_close, win, true)