nvim-treesitter / nvim-treesitter-refactor

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

fix double-application of highlight to definition node #55

Closed Amleto closed 2 months ago

Amleto commented 6 months ago

In some colorschemes the usage highlight and the definition highlight will both be applied, making the definition unreadable.

Check that the node is not the definition node before applying the usage highlight.