-
-
Notifications
You must be signed in to change notification settings - Fork 53
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 colors on keys/variables #189
Comments
so interestingly, after a bit of trying to fiddle with the theme myself it seems as though setting |
Hey thanks for reporting this! The face used for colouring the attributes in nix-ts-mode is Here's an example of some C code with There are two issues here: first, being that the Catppuccin theme does not style property faces (font-lock-property-name-face inherits from font-lock-variable-name-face); second, being the abuse of faces by modes. Faces such as Essentially on our side we should patch in support for |
yes, I also noticed this thing with a lot of other ts modes as well, observed this in both json ts mode and also toml ts mode as well |
also yes I do agree that having |
I'd have to look into what faces those modes are using, it's especially difficult when different modes use faces for different things |
Hello, how's is progress on this? I just saw this issue and I think I'll open up a PR on nix-ts-mode. I'll set NixOn Emacs: On Kate: JSONOn Emacs: On Kate: |
Hmm interesting, in emacs the keys are red 🤔 |
I just set it to red for a quick demonstration of fontification (setting a face to red in Emacs just requires a quick It looks perfect for JSON already, because they already use |
Emacs vs. VSCodiumFor Nix, there would still be a long way to go (although, this comparison might be inaccurate, since VSCode doesn't use tree-sitter, let me know if VSCodium in my screenshot is also incorrect). |
that seems to look pretty close edit: Also I wonder, would it be possible to theme brackets as well |
If it's defined in the grammar, then yes (I saw entries for parentheses and curly brackets), but it would require some time to get it right, as I'd need to do a more thorough reading of the grammar. EDIT: the brackets seem to be colored based on depth, so you can just use rainbow-delimiters instead. |
yes rainbow-delimiters work for now |
as per the catppuccin docs, the keys/properties are supposed to be blue right?

for eg on nix for vscode, we get the blue color:
however on emacs we get normal white color like this:

as per catppuccin style guide it should be blue

another example with json:

vscode:
Emacs:

infact even the brackets dont seem to be themed correctly
I already have the ts mode enabled for both as well
One thing I am confused with,is the ts-modes somehow causing issues?
The text was updated successfully, but these errors were encountered: