Automatically highlight the cursorline and cusorcolumn after the elapse of certain milliseconds.
With lazy.nvim
{
'b4b4r07/cursor-x.nvim',
lazy = true,
event = { 'BufRead' },
config = function()
require('cursor-x').setup({
interval = 3000, -- 3s
filetype_exclude = { 'neo-tree', 'yaml' },
})
end,
}
{
interval = 3000,
always_cursorline = true,
-- example: if following original option setting
-- always_cursorline = vim.opt.cursorline:get(),
filetype_exclude = {'dirvish', 'fugitive'},
buftype_exclude = {},
}
Globally enable highlighing.
Globally disable highlighing.