When enabling highlight_definitions and trying to hover with cursor over a symbol, no other symbols are highlighted.
To Reproduce
1) Enable nvim-treesitter-refactor highlight_definitions as provided on the documentation
2) Try to create a simple program (C in my case) which contains a symbol definition and usage
3) Try to hover with cursor over the symbol usage
4) The original definition is not highlighted
Expected behavior
The original definition of such symbol should be highlighted
Output of :checkhealth nvim_treesitter
nvim-treesitter: require("nvim-treesitter.health").check()
========================================================================
## Installation
- OK: `tree-sitter` found 0.20.7 (parser generator, only needed for :TSInstallFromGrammar)
- OK: `node` found v18.7.0 (only needed for :TSInstallFromGrammar)
- OK: `git` executable found.
- OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: cc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4)
- OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
## OS Info:
{
machine = "x86_64",
release = "6.2.8-200.fc37.x86_64",
sysname = "Linux",
version = "#1 SMP PREEMPT_DYNAMIC Wed Mar 22 19:11:02 UTC 2023"
}
## Parser/Features H L F I J
- c ✓ ✓ ✓ ✓ ✓
- java ✓ ✓ . ✓ ✓
- lua ✓ ✓ ✓ ✓ ✓
- vim ✓ ✓ ✓ . ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang}
When enabling highlight_definitions and trying to hover with cursor over a symbol, no other symbols are highlighted.
To Reproduce 1) Enable nvim-treesitter-refactor highlight_definitions as provided on the documentation 2) Try to create a simple program (C in my case) which contains a symbol definition and usage 3) Try to hover with cursor over the symbol usage 4) The original definition is not highlighted
Expected behavior The original definition of such symbol should be highlighted
Output of
:checkhealth nvim_treesitter
nvim-treesitter: require("nvim-treesitter.health").check() ======================================================================== ## Installation - OK: `tree-sitter` found 0.20.7 (parser generator, only needed for :TSInstallFromGrammar) - OK: `node` found v18.7.0 (only needed for :TSInstallFromGrammar) - OK: `git` executable found. - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" } Version: cc (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4) - OK: Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI. ## OS Info: { machine = "x86_64", release = "6.2.8-200.fc37.x86_64", sysname = "Linux", version = "#1 SMP PREEMPT_DYNAMIC Wed Mar 22 19:11:02 UTC 2023" } ## Parser/Features H L F I J - c ✓ ✓ ✓ ✓ ✓ - java ✓ ✓ . ✓ ✓ - lua ✓ ✓ ✓ ✓ ✓ - vim ✓ ✓ ✓ . ✓ Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang}
Output of
nvim --version
Additional context Running :checkhealth against nvim only returns that I do not have pynvim installed. Unsure whether that could be the issue.