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

Need a way to configure the highlight color #73

Closed scottchiefbaker closed 3 years ago

scottchiefbaker commented 3 years ago

The default highlight color for vim-illuminate is pretty subtle. I'd like a way to configure the highlight color (and background) of words. I don't see anything in the documentation about changing the highlight color. Is this possible?

RRethy commented 3 years ago

See :h illuminatedWord and :h illuminatedCurWord. If you are using the LSP functionality then see :h hl-LspReferenceText, :h hl-LspReferenceWrite, and :h hl-LspReferenceRead.

scottchiefbaker commented 3 years ago

In case anyone else is looking to do this here is the solution I came up with for my ~/.vimrc

autocmd VimEnter * hi illuminatedWord ctermbg=38 ctermfg=226