Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix double-application of highlight to definition node #55

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

Amleto
Copy link
Contributor

@Amleto Amleto commented May 14, 2024

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.

@clason clason closed this Sep 14, 2024
@clason clason reopened this Sep 14, 2024
@clason clason merged commit d8b74fa into nvim-treesitter:master Sep 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants