dwrdx / mywords.nvim

Highlight words with different colors in neovim: Regex is supported as well

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mywords.nvim

Highlight words with different colors in neovim. When all the configured colors has been used, the first highlight will be cleared automatically and used for the next new highlight, you don't have to clear old highlights that you don't care anymore.

mywords-nvim-demo

How to install

Recommend to use vim-plug

Plug 'dwrdx/mywords.nvim' 

How to use

configuire your own key mappings in init.vim

map <silent> <leader>m :lua require'mywords'.hl_toggle()<CR>
map <silent> <leader>r :lua require'mywords'.hl_toggle_regex()<CR>
map <silent> <leader>c :lua require'mywords'.uhl_all()<CR>

About

Highlight words with different colors in neovim: Regex is supported as well

License:MIT License


Languages

Language:Lua 97.0%Language:Vim Script 3.0%