-
Notifications
You must be signed in to change notification settings - Fork 124
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
Tree Sitter colors contradict standard colors #128
Comments
I also got confused by this when I started contributing to Everforest, but sainnhe explained in some other issue that those differences are indeed by design. Here is the rationale: The Vim syntax mechanism is not as expressive as Tree-sitter, and can't achieve the same granularity of syntax highlighting as Tree-sitter (in most languages). For that reason, you often end up with less nuances to work with in the Vim syntax compared to Tree-sitter.
Besides the colors which are sometimes distributed differently, you will also notice that the usage of italics doesn't follow the same rules between Vim syntax and Tree-sitter, otherwise in some cases the Vim syntax would be overly italicized, etc. I hope I managed to answer your question accurately :) |
Ok, fair enough. That answers my question quite nicely. Do you want to keep this issue open, so others can more easily see the answer to this question instead of writing another issue about it? |
Yes please. This will also be a reminder for me to finally push this documentation to the palette doc. |
In palette.md, the Tree Sitter colors sometimes do not agree with the regular colors. For example,
aqua
is the constants color normally, butfg
is the Tree Sitter constants color. Similarly,green
is normally the string color, but under Tree Sitter it'saqua
.Are these inconsistencies intended? Or should everforest ports default to the original colors in case of a conflict?
The text was updated successfully, but these errors were encountered: