RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.14k stars 47 forks source link

Don't illuminate current word if it has no other matches #74

Closed ram02z closed 3 years ago

ram02z commented 3 years ago

Not sure if this in the scope of this project. However, I would prefer if the current word only illuminates when there is more than one match on screen.

RRethy commented 3 years ago

Since this plugin uses matchadd, this type of logic wouldn't be possible.