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.12k stars 44 forks source link

How to change the background/highlight color of an illuminated word #148

Closed kaykhan closed 1 year ago

kaykhan commented 1 year ago

Hi, this may have been asked before but i found the solutions in those issues are not working for me, maybe something has changed since v2. When a word is illuminated it is still quite difficult for me to see. See screenshot below.

image

How do i change the background color of all words which become illuminated under my cursor.

I have tried the following from other issues and i could not get the color to change at all:

  1. https://github.com/RRethy/vim-illuminate/issues/41#issuecomment-782265824 (:hi illuminatedWord guibg=#1f4087)
  2. https://github.com/RRethy/vim-illuminate/issues/7#issuecomment-408697136 (:hi illuminatedWord cterm=underline gui=underline)
kaykhan commented 1 year ago

Managed to find out what i needed after writing this .

vim.cmd("hi IlluminatedWordRead guibg=#525252")