nvim-treesitter / nvim-treesitter-refactor

Refactor module for nvim-treesitter
Apache License 2.0
398 stars 25 forks source link

nvim-treesitter-refactor `highlight_definitions` only works when cursor hover on the usages but not when cursor on the declaration? #54

Open krehwell opened 9 months ago

krehwell commented 9 months ago

as the title says. see image below

RDT_20240126_0239492688390237524576071

the top image showing the cursor is placed above the var declaration but it highlights nothing

the bottom image shows when the cursor is placed above implementation then the highlight works

how to get the highlight works when cursor is above the declaration?