Skip to content

An extremely lightweight plugin (~ 60loc) that hightlights ranges you have entered in commandline.

License

Notifications You must be signed in to change notification settings

TrendingTechnology/range-highlight.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

range-highlight.nvim

An extremely lightweight plugin (~ 60loc) that hightlights ranges you have entered in commandline.

Demo for using range-highlight

Features

  • Single line range highlight (:10)

  • Absolute range highlight (:20,15)

  • Semicolon separated range highlight (:20;15)

  • Backward range highlight (:20,15)

  • Shorthand range highlight (:,15)

  • Relative range highlight (:+5,-2)

  • Multiple relative range highlight (:10+5--,5+3-2)

  • Mark range highlight (:'a,20)

  • Dot range highlight (:.,-2, :5,.)

  • Last line and whole file highlight (:4,$, :%)

  • Pattern range highlight (:/hello/d) (WIP)

Installation

paq.nvim

paq{'winston0410/range-highlight.nvim'}
require'range-highlight'.setup{}

Configuration

This is the default configuration. It is likely that you don't need to change anything.

require("range-highlight").setup {
    highlight = "Visual"
}

Acknowledgement

Thank you folks from gitters for helping me out with this plugin.

About

An extremely lightweight plugin (~ 60loc) that hightlights ranges you have entered in commandline.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%