Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winston0410/range-highlight.nvim
An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.
https://github.com/winston0410/range-highlight.nvim
neovim neovim-plugin
Last synced: about 2 months ago
JSON representation
An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.
- Host: GitHub
- URL: https://github.com/winston0410/range-highlight.nvim
- Owner: winston0410
- License: mit
- Created: 2021-05-15T16:02:06.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T07:18:45.000Z (9 months ago)
- Last Synced: 2024-01-24T09:38:30.028Z (4 months ago)
- Topics: neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 1.06 MB
- Stars: 185
- Watchers: 3
- Forks: 6
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-neovim - winston0410/range-highlight.nvim - An extremely lightweight plugin (~ 120loc) that highlights ranges you have entered in commandline. (Color / PHP)
- awesome-stars - winston0410/range-highlight.nvim - An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline. (Lua)
- awesome-stars - winston0410/range-highlight.nvim - An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline. (Lua)
- awesome-stars - winston0410/range-highlight.nvim - An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline. (Lua)
- awesome-neovim - winston0410/range-highlight.nvim - An extremely lightweight plugin (~ 120loc) that highlights ranges you have entered in commandline. (Color / Markdown and LaTeX)
- awesome-neovim - winston0410/range-highlight.nvim - An extremely lightweight plugin (~ 120loc) that highlights ranges you have entered in commandline. (Color / Markdown and LaTeX)
README
# range-highlight.nvim
An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.
![Demo for using range-highlight](./demo.gif)
## 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`, `?world?d`)
## Installation
`range-highlight.nvim` requires a minimum version of NeoVim 0.5.0.
You can install it using any standard Vim/NeoVim package manager. For example:
### `paq.nvim`
```lua
paq{'winston0410/cmd-parser.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.
```lua
require("range-highlight").setup {
highlight = "Visual",
highlight_with_out_range = {
d = true,
delete = true,
m = true,
move = true,
y = true,
yank = true,
c = true,
change = true,
j = true,
join = true,
["<"] = true,
[">"] = true,
s = true,
subsititue = true,
sno = true,
snomagic = true,
sm = true,
smagic = true,
ret = true,
retab = true,
t = true,
co = true,
copy = true,
ce = true,
center = true,
ri = true,
right = true,
le = true,
left = true,
sor = true,
sort = true
}
}
```### Range highlight not working for your command?
If the range highlight doesn't work for your command, you can contribute it into the above list
## Acknowledgement
Thank you folks from [gitters](https://gitter.im/neovim/neovim) for helping me out with this plugin.