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

Incorrect treesitter hightlighting #68

Open
Kranzes opened this issue Nov 28, 2021 · 2 comments
Open

Incorrect treesitter hightlighting #68

Kranzes opened this issue Nov 28, 2021 · 2 comments

Comments

@Kranzes
Copy link
Contributor

Kranzes commented Nov 28, 2021

The syntax highlighting of nord.nvim (nord vim too) don't follow the same syntax highlighting as other themes when using treesitter's highlighting functionality.
Notice the lack of highlighting in the outputsBuilder part.

See below:

  • First image - nord.nvim + treesitter
  • Second image - nord.nvim only
  • Third image - default nvim theme + treesitter
  • Fourth image - dracula + treesitter
    image
    image
    image
    image
@Snow-0
Copy link

Snow-0 commented Jun 13, 2022

I'm having the same issue as well with Python. The self keyword is not highlighted when using nord but is when using other themes like Tokyo Night.

@antoineco
Copy link
Contributor

@Kranzes @Snow-0 from my experience Treesitter's default syntax highlighting groups are rarely enough to provide rich language-specific highlighting on their own. Often the theme needs to remap certain groups to its own palette in order to improve the meaning of colors in certain languages.

You can check how a certain keyword was highlighted by enabling https://github.com/nvim-treesitter/playground and executing the command :TSHighlightCapturesUnderCursor after moving the cursor to that keyword.

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

No branches or pull requests

3 participants