Highlight words and lines on the cursor for Neovim
- Underlines the word under the cursor.
cursorword.mp4
- Show / hide cursorline in connection with cursor moving.
cursorline.mp4
Install with your favorite plugin manager.
require('nvim-cursorline').setup {
cursorline = {
enable = true,
timeout = 1000,
number = false,
},
cursorword = {
enable = true,
min_length = 3,
hl = { underline = true },
insert_highlighting = true,
}
}require('nvim-cursorline').setup {
cursorline = {
enable = false,
},
cursorword = {
enable = true,
min_length = 1,
hl = {
underline = false,
fg = "#c0caf5",
bg = "#565f89",
sp = nil,
blend = 0,
bold = false,
standout = false,
underline = false,
undercurl = false,
underdouble = false,
underdotted = false,
underdashed = false,
strikethrough = false,
italic = false,
reverse = false,
nocombine = false,
},
}
}Most of the cursorword options are shown above. See a complete list of properties that can be set for val in the Neovim documentation: https://neovim.io/doc/user/api.html#nvim_set_hl().
Thanks goes to these people/projects for inspiration:
This software is released under the MIT License, see LICENSE.