only show cursorline on current window

This commit is contained in:
2023-11-26 14:20:54 -05:00
parent f35b13d669
commit b3110c9a9b

View File

@ -65,17 +65,19 @@ auto('BufWritePre', {
}) })
auto('WinLeave', { auto('WinLeave', {
pattern = '!Alpha',
desc = 'Unset cursorline', desc = 'Unset cursorline',
group = toggles, group = toggles,
callback = function() vim.opt.cursorline = false end callback = function() vim.opt.cursorline = false end
}) })
auto('WinEnter', { auto('WinEnter', {
pattern = '!Alpha',
desc = 'Set cursorline', desc = 'Set cursorline',
group = toggles, group = toggles,
callback = function() vim.opt.cursorline = true end callback = function()
if vim.bo.filetype ~= 'alpha' then
vim.opt.cursorline = true
end
end
}) })
auto('ColorScheme', { auto('ColorScheme', {