This no longer enables and disables vim.opt.cursorline when leaving or entering windows. Instead, we toggle whether highlights should be applied. Unfortunately this is not a fully working solution. When inside an ignored filetype, highlights are not applied but once you are in a normal window again, cursorlines that can still be seen in ignored filetypes are now highlighted due to highlights being global.
This no longer enables and disables
vim.opt.cursorline
when leaving or entering windows. Instead, we toggle whether highlights should be applied. Unfortunately this is not a fully working solution. When inside an ignored filetype, highlights are not applied but once you are in a normal window again, cursorlines that can still be seen in ignored filetypes are now highlighted due to highlights being global.Ref #28