Highlight cursor and visual selections when entering command mode (experimental).
command-and-cursor-2024-04-18_13.31.53.webm
- Highlight cursor in active buffer when entering command mode (
:/?
). - Highlight visual selections and include cursor location by default (inclusive).
- Highlight initial visual selection prior to its expansion with incremental search.
- Configure highlight group.
- In normal mode, cursor "disappears" from buffer when entering
cmdline
. - Visual selection highlight is not inclusive (cursor).
- Visual selection highlight might be too subtle in a colorful "big" terminal.
- When expanding a visual selection with incremental search, there is no indication of the original selection.
Use your favorite plugin manager:
{
"moyiz/command-and-cursor.nvim",
event = "VeryLazy",
opts = {},
}
M.defaults = {
hl_group = "TermCursor", -- The highlight group to use.
hl_priority = 300, -- Priority of highlight
inclusive = true, -- Highlight cursor with visual selection.
debug_position = false, -- Show start and end positions with `vim.notify`.
}
See LICENSE.