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.16k stars 47 forks source link

add option to overwrite the hightlight color #31

Closed thallysrc closed 5 years ago

thallysrc commented 5 years ago

I'm recently installed this plugin but this highlight don't have to much difference in my colorscheme, probably my eyes doesn't work so well, my suggestions is to add an option to overwrite this color to turn this hightlight a little more comfortable to me, if the owner of repository think that could be useful i volunteer myself to do this. Screenshot from 2019-03-11 10-09-05

RRethy commented 5 years ago

This already exists and is documented in the README and help docs. You have access to the highlight group illuminatedWord which defines how the colouring is done. This allows a significant amount of customization and enables color scheme authors to incorporate it into their color scheme. Here are some examples to get you started:

Underline the words

hi illuminatedWord cterm=underline gui=underline

Dark Red background

hi illuminatedWordk ctermbg=4 guibg=#8b0000

White background and red foreground text

hi illuminatedWordk ctermbg=15 guibg=#FFFFFF ctermfg=4 guifg=#8b0000