Skip to content

sogimu/text_selection_highlighting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Text Selection Highlighting

Text Selection Highlighting

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.

Features

  • 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 Enter uses the last selected color

Keybindings

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

Installation

Via Lazy

{
  "sogimu/text_selection_highlighting",
  lazy = false,
}

Usage

  1. Select text in visual mode (v or V)
  2. Press <leader>h (usually Space + h)
  3. Enter color number (1-5) or press Enter to use the last color
  4. Navigate with <leader>n and <leader>N
  5. Clear all marks in a file with <leader>H

About

Neovim plugin for manual multi-color text highlighting with navigation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages