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.17k stars 48 forks source link

change color of highlight #7

Closed orengriffin closed 6 years ago

orengriffin commented 6 years ago

I'm using the ondark theme and the highlight background color as very hard to notice. could there be a configuration to change the color? it would probably be best if it was the same like the selection ('V' and select) color.

screen shot 2018-07-29 at 20 14 53
RRethy commented 6 years ago

Hey, at the bottom of the README and docs there is a section on changing the highlighting. You have to define the illuminatedWord highlight group. The following is an example to make it underline the words:

hi illuminatedWord cterm=underline gui=underline

To make it the same as the visual selection, you can use the following:

hi link illuminatedWord Visual

Drop that in your vimrc OR your colorscheme file.

I am also open to suggestions to improvements to the README and docs to make this more clear, Ill also go back and reread the stuff cuz it was written fairly quickly and maybe not the clearest.

kaykhan commented 1 year ago

hi illuminatedWord cterm=underline gui=underline

Should this still work for the latest version? seems like it works for some words but not others :/