A custom Neovim module for manually highlighting selected text regions with different colors. Useful when analyzing large files where you need to visually group code fragments or logs.
- 5 highlight colors: green, cyan, magenta, orange, dark green
- Persistence: Highlights are bound to the buffer, not cleared when opening NvimTree or splits
- Navigation: Jump between created marks with screen centering
- Auto-remember color: Repeated
Enteruses the last selected color
| Key | Mode | Description |
|---|---|---|
<leader>h |
Visual | Highlight selection and choose color (1-5) |
<leader>n |
Normal | Jump to next mark |
<leader>N |
Normal | Jump to previous mark |
<leader>H |
Normal | Clear all marks in current buffer |
{
"sogimu/text_selection_highlighting",
lazy = false,
}- Select text in visual mode (
vorV) - Press
<leader>h(usuallySpace + h) - Enter color number (1-5) or press
Enterto use the last color - Navigate with
<leader>nand<leader>N - Clear all marks in a file with
<leader>H
