Closed jplate8 closed 1 year ago
It might be an issue of highlight groups and when you are loading your colorscheme, see https://github.com/RRethy/vim-illuminate/issues/129#issuecomment-1249458837.
Thanks for the response. I tried adding these lines, but the behavior does not seem to have changed. I should also mention that there is no colorscheme being explicitly loaded by this init.vim.
New init.vim
:
call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'RRethy/vim-illuminate'
call plug#end()
" let g:Illuminate_useDeprecated = 1
hi def IlluminatedWordText gui=underline
hi def IlluminatedWordRead gui=underline
hi def IlluminatedWordWrite gui=underline
With deprecated flag:
Without deprecated flag:
In that same file while your cursor is on call
, what's the output of this command:
lua =require('illuminate.reference').buf_get_references(vim.fn.bufnr())
When my cursor is on call
like this:
That command gives this output:
I've also discovered that using the gruvbox-material
colorscheme seems to fix it:
But the regular
gruvbox
colorscheme does not work:
gruvbox-material
talks about how it has tree-sitter support, and semantic highlighting support. Could these features be relevant?
Try this config with nvim -u config.vim config.vim
:
call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'RRethy/vim-illuminate'
call plug#end()
set termguicolors
It looks like that worked!
Thank you so much
Ah ok, that finally makes sense lol. I modified :IlluminateDebug
to show this info in https://github.com/RRethy/vim-illuminate/commit/785f76bc941475a54e50d1f9bce50e28236d951e. You'll have to have set termguicolors
in your config to use gui=underline
(I wasn't aware of this either till now).
Describe the bug I could be installing the plugin wrong, but I can't get highlighting to happen in neovim 0.7.2 unless I add
let g:Illuminate_useDeprecated = 1
To Reproduce Steps to reproduce the behavior (include minimal
init.vim
or.vimrc
): Just install the plugin (say, via vim-plugged, as in the following init.vim). minimal init.vim:To use this minimal init.vim, I ran
PlugClean
to get rid of any previous plugins.Note Omitting a minimal
init.vim
/init.lua
/.vimrc
will likely result in the issue being closed without explanation.Output from
:IlluminateDebug
(when not using deprecated flag)Expected behavior I expected the highlighting to happen even without using the deprecated flag, since I am on the latest neovim version (0.7.2).
Screenshots Without deprecated flag (no highlighting):
With deprecated flag (highlighting):
![image](https://user-images.githubusercontent.com/2107398/192151986-0caf877d-7c78-4236-ba91-d667f637f5d3.png)
Additional context I noticed that that
:help illuminate.txt
describes the plugin as being "For NVIM v0.8.0", so I thought that there might be some compatibility issues with what I'm running.