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

Use `hi def link` in place of `hi link` #75

Closed usaoc closed 3 years ago

usaoc commented 3 years ago

Right now, the plugin uses hi link to set the highlight groups. With patch 8.2.{1693,1703} merged both in Neovim and Vim, hi def link will help if the colorscheme is changed after the plugin is loaded. Moreover, with the current bug in Neovim, the highlight groups are cleared even if the user explicitly load the plugin after setting the colorscheme, as in #70. hi def link helps solve the aforementioned issues.