Closed jimrybarski closed 5 months ago
Should be fixed with newest TS commit. Reference https://github.com/nvim-treesitter/nvim-treesitter/pull/5982
Additionally, illumination only works if vim.opt.termguicolors is set to true. If this isn't a bug I believe it should be documented somewhere, since the readme states that installing the plugin should be sufficient.
It's not required to have termguicolors turned on, this would be an issue with your colorscheme. The default highlight is just an underline.
I'm going to close since it seems @leftas fixed this in nvim-treesitter, if the issue persists then drop a comment and I can re-open.
Thanks to you both! This solved my problems. Whatever was happening with termguicolors has also gone away with the updated treesitter.
Describe the bug Illumination does not work if treesitter is included in the providers list. Removing treesitter, and only including regex (or regex and lsp) works fine. I'm not using an LSP (for the moment, as I'm slowly building up a new config from scratch).
Additionally, illumination only works if
vim.opt.termguicolors
is set totrue
. If this isn't a bug I believe it should be documented somewhere, since the readme states that installing the plugin should be sufficient.Treesitter is definitely working (I can toggle it with
:TSDisable highlight
and:TSEnable highlight
and see changes in the highlighting. Moving the plugin to to before or after treesitter in the lazy setup makes no difference.To Reproduce Steps to reproduce the behavior (include minimal
init.vim
or.vimrc
):Minimal init.lua:
To reproduce:
false
.Output from
:IlluminateDebug
Expected behavior vim-illuminate should highlight "local" and other tokens using the treesitter provider.
Additional context I'm using nvim 0.9.5 on Arch Linux (LTS).