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', {
pattern = '!Alpha',
desc = 'Unset cursorline',
group = toggles,
callback = function() vim.opt.cursorline = false end
})
auto('WinEnter', {
pattern = '!Alpha',
desc = 'Set cursorline',
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', {