Closed elliotwesoff closed 1 year ago
The highlight groups are probably being cleared, try a :hi IlluminatedWordText
to see if it's still defined.
Also, please follow the issue template, it asks for a minimal config, but you linked your entire dotfiles. Please post a minimal config that doesn't use packer, I suspect the issue is the order which packer loads plugins and thus creating that minimal config will show that. If you can't get things working with packer, you may have to end up defining the highlight groups yourself. The docs have examples on how to do this.
I'm going to close this because it's likely a packer loading order mistake that can be fixed by defining the highlight groups manually or reconfiguring packer. If you can produce a minimal config that shows it's unrelated to what I said, I'll reopen the issue.
@RRethy It seems that calling colorscheme [color]
on pretty much any theme clears the IlluminatedWordText highlight group. So basically I can't use this plugin with any colorscheme besides the nvim default. Is there another workaround?
This is what I figured it would be, that's an issue with packer loading things in the wrong order.
I pushed a change as a workaround so pulling latest should resolve things, but your config (and packer especially) is doing funky things if the colorscheme is being loaded after plugin initialization, see :h initialization
for the correct order for things.
The highlighting works fine immediately after installing the plugin with :PackerSync. If I close and reopen neovim nothing is ever highlighted. I know the plugin is installed and running because and jump between symbols under the cursor.
To Reproduce Steps to reproduce the behavior (include minimal
init.vim
or.vimrc
):use 'RRethy/vim-illuminate/'
to packer package declarations.Note Omitting a minimal
init.vim
/init.lua
/.vimrc
will likely result in the issue being closed without explanation. Please see my dotfilesOutput from
:IlluminateDebug
:IlluminateDebugbuf_should_illuminate 1 true
config {
delay = 10,
filetype_overrides = {},
filetypes_allowlist = {},
filetypes_denylist = { "dirbuf", "dirvish", "fugitive" },
min_count_to_highlight = 1,
modes_allowlist = {},
modes_denylist = {},
providers = { "lsp", "treesitter", "regex" },
providers_regex_syntax_allowlist = {},
providers_regex_syntax_denylist = {},
under_cursor = true
}
started true
provider table: 0x7fce5a9302a0 lsp
termguicolors
truePress ENTER or type command to continue
Expected behavior Symbols under the cursor should be highlighted in all open buffers
Screenshots
Immediately after installation:
No highlighting after reopening neovim: