nvim-treesitter / nvim-treesitter-refactor

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

fix double-application of highlight to definition node #55

Closed Amleto closed 1 month ago

Amleto commented 5 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.