Highlight visually selected line numbers in Neovim.
- Set a custom foreground and background color while visually selecting lines
- That's it!
{
'joncrangle/visual-lines.nvim',
event = { 'BufReadPre', 'BufNewFile' }, -- optional
opts = {},
}
Full configuration with default values
{
'joncrangle/visual-lines.nvim',
event = { 'BufReadPre', 'BufNewFile' }, -- optional
---@type VisualLineNumbersOptions
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
fg = '#F9E2AF', -- defaults to your `CursorLineNr` highlight color
bg = 'NONE',
highlight_group = 'VisualLineNr', -- highlight group name
priority = 10, -- priority for extmarks
},
}