Closed cptchuckles closed 2 years ago
This is a limitation in nvim-treesitter, you can see the locals query for gdscript here. You can try modifying the gdscript locals query yourself to highlight variable usages and make a PR into nvim-treesitter which is what vim-illuminate is using under the hood. That being said, there's nothing that can be done on vim-illuminate's side.
Describe the bug The Treesitter provider for GDScript does not work. Note: the LSP servers for gdscript don't provide
textDocument/documentHighlight
, which leaves regex the only option, but regex sux.To Reproduce Steps to reproduce the behavior (include minimal
init.vim
or.vimrc
):/tmp/illuminate-min.lua
$ nvim -nu /tmp/illuminate-min.lua
2a. Close and reopen neovim.gd
file (one is provided below)Minimal config (
/tmp/illuminate-min.lua
):Minimal .gd source file:
Here is the
TSPlayground
output for the above gdscript file:Output from
:IlluminateDebug
Expected behavior With the above provided .gd source file, you should be able to hover
thing_a
orthing_b
and get highlighting on all occurrences, and use<a-n>
and<a-p>
to hop between references. Nothing happens.