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

more catppuccin treesitter coloring #7

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion template.hbr
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ players:
{{/each}}
],
"syntax": {
{{!-- https://github.com/catppuccin/nvim/blob/56fb98218d22d5c326387bf9e4076227e7372e6b/lua/catppuccin/groups/integrations/treesitter.lua#L15 --}}
"attribute": {
"color": "#{{yellow}}",
"font_style": null,
Expand All @@ -189,6 +190,11 @@ players:
"font_style": null,
"font_weight": null
},
"constant.builtin": {
"color": "#{{peach}}",
"font_style": null,
"font_weight": null
},
"constructor": {
"color": "#{{blue}}",
"font_style": null,
Expand Down Expand Up @@ -224,6 +230,11 @@ players:
"font_style": null,
"font_weight": null
},
"module": {
"color": "#{{yellow}}",
"font_style": "italic",
"font_weight": null
},
"number": {
"color": "#{{peach}}",
"font_style": null,
Expand Down Expand Up @@ -289,6 +300,11 @@ players:
"font_style": null,
"font_weight": null
},
"string.special.symbol": {
"color": "#{{rosewater}}",
"font_style": "italic",
"font_weight": null
},
Comment on lines +303 to +307

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've moved away from rosewater in the newer style guide too, I'm curious how VSCode highlights these?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had some discussion about this on the discord, will update the style guide soon but this should now be peach

The reasoning being that these symbols are usually immutable/constants in languages

Suggested change
"string.special.symbol": {
"color": "#{{rosewater}}",
"font_style": "italic",
"font_weight": null
},
"string.special.symbol": {
"color": "#{{peach}}",
"font_style": "italic",
"font_weight": null
},

"tag": {
"color": "#{{blue}}",
"font_style": null,
Expand All @@ -299,14 +315,34 @@ players:
"font_style": null,
"font_weight": null
},
"title": {
"color": "#{{text}}",
"font_style": null,
"font_weight": 800
},
"type": {
"color": "#{{yellow}}",
"font_style": "italic",
"font_weight": null
},
"variable": {
"color": "#{{text}}",
"font_style": "italic",
"font_style": null,
"font_weight": null
},
"variable.builtin": {
"color": "#{{red}}",
"font_style": null,
"font_weight": null
},
"variable.parameter": {
"color": "#{{maroon}}",
"font_style": null,
"font_weight": null
},
"variable.member": {
"color": "#{{lavender}}",
"font_style": null,
"font_weight": null
},
Comment on lines +343 to 347

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like treesitter describes this as:

@variable.member             ; object and struct fields

and in VSCode / JetBrains, we kept this as text:

image

so this should kept as text

Suggested change
"variable.member": {
"color": "#{{lavender}}",
"font_style": null,
"font_weight": null
},
"variable.member": {
"color": "#{{text}}",
"font_style": null,
"font_weight": null
},

"variable.special": {
Expand Down
148 changes: 144 additions & 4 deletions themes/catppuccin.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@
"font_style": null,
"font_weight": null
},
"constant.builtin": {
"color": "#fe640b",
"font_style": null,
"font_weight": null
},
"constructor": {
"color": "#1e66f5",
"font_style": null,
Expand Down Expand Up @@ -239,6 +244,11 @@
"font_style": null,
"font_weight": null
},
"module": {
"color": "#df8e1d",
"font_style": "italic",
"font_weight": null
},
"number": {
"color": "#fe640b",
"font_style": null,
Expand Down Expand Up @@ -304,6 +314,11 @@
"font_style": null,
"font_weight": null
},
"string.special.symbol": {
"color": "#dc8a78",
"font_style": "italic",
"font_weight": null
},
"tag": {
"color": "#1e66f5",
"font_style": null,
Expand All @@ -314,14 +329,34 @@
"font_style": null,
"font_weight": null
},
"title": {
"color": "#4c4f69",
"font_style": null,
"font_weight": 800
},
"type": {
"color": "#df8e1d",
"font_style": "italic",
"font_weight": null
},
"variable": {
"color": "#4c4f69",
"font_style": "italic",
"font_style": null,
"font_weight": null
},
"variable.builtin": {
"color": "#d20f39",
"font_style": null,
"font_weight": null
},
"variable.parameter": {
"color": "#e64553",
"font_style": null,
"font_weight": null
},
"variable.member": {
"color": "#7287fd",
"font_style": null,
"font_weight": null
},
"variable.special": {
Expand Down Expand Up @@ -533,6 +568,11 @@
"font_style": null,
"font_weight": null
},
"constant.builtin": {
"color": "#ef9f76",
"font_style": null,
"font_weight": null
},
"constructor": {
"color": "#8caaee",
"font_style": null,
Expand Down Expand Up @@ -568,6 +608,11 @@
"font_style": null,
"font_weight": null
},
"module": {
"color": "#e5c890",
"font_style": "italic",
"font_weight": null
},
"number": {
"color": "#ef9f76",
"font_style": null,
Expand Down Expand Up @@ -633,6 +678,11 @@
"font_style": null,
"font_weight": null
},
"string.special.symbol": {
"color": "#f2d5cf",
"font_style": "italic",
"font_weight": null
},
"tag": {
"color": "#8caaee",
"font_style": null,
Expand All @@ -643,14 +693,34 @@
"font_style": null,
"font_weight": null
},
"title": {
"color": "#c6d0f5",
"font_style": null,
"font_weight": 800
},
"type": {
"color": "#e5c890",
"font_style": "italic",
"font_weight": null
},
"variable": {
"color": "#c6d0f5",
"font_style": "italic",
"font_style": null,
"font_weight": null
},
"variable.builtin": {
"color": "#e78284",
"font_style": null,
"font_weight": null
},
"variable.parameter": {
"color": "#ea999c",
"font_style": null,
"font_weight": null
},
"variable.member": {
"color": "#babbf1",
"font_style": null,
"font_weight": null
},
"variable.special": {
Expand Down Expand Up @@ -862,6 +932,11 @@
"font_style": null,
"font_weight": null
},
"constant.builtin": {
"color": "#f5a97f",
"font_style": null,
"font_weight": null
},
"constructor": {
"color": "#8aadf4",
"font_style": null,
Expand Down Expand Up @@ -897,6 +972,11 @@
"font_style": null,
"font_weight": null
},
"module": {
"color": "#eed49f",
"font_style": "italic",
"font_weight": null
},
"number": {
"color": "#f5a97f",
"font_style": null,
Expand Down Expand Up @@ -962,6 +1042,11 @@
"font_style": null,
"font_weight": null
},
"string.special.symbol": {
"color": "#f4dbd6",
"font_style": "italic",
"font_weight": null
},
"tag": {
"color": "#8aadf4",
"font_style": null,
Expand All @@ -972,14 +1057,34 @@
"font_style": null,
"font_weight": null
},
"title": {
"color": "#cad3f5",
"font_style": null,
"font_weight": 800
},
"type": {
"color": "#eed49f",
"font_style": "italic",
"font_weight": null
},
"variable": {
"color": "#cad3f5",
"font_style": "italic",
"font_style": null,
"font_weight": null
},
"variable.builtin": {
"color": "#ed8796",
"font_style": null,
"font_weight": null
},
"variable.parameter": {
"color": "#ee99a0",
"font_style": null,
"font_weight": null
},
"variable.member": {
"color": "#b7bdf8",
"font_style": null,
"font_weight": null
},
"variable.special": {
Expand Down Expand Up @@ -1191,6 +1296,11 @@
"font_style": null,
"font_weight": null
},
"constant.builtin": {
"color": "#fab387",
"font_style": null,
"font_weight": null
},
"constructor": {
"color": "#89b4fa",
"font_style": null,
Expand Down Expand Up @@ -1226,6 +1336,11 @@
"font_style": null,
"font_weight": null
},
"module": {
"color": "#f9e2af",
"font_style": "italic",
"font_weight": null
},
"number": {
"color": "#fab387",
"font_style": null,
Expand Down Expand Up @@ -1291,6 +1406,11 @@
"font_style": null,
"font_weight": null
},
"string.special.symbol": {
"color": "#f5e0dc",
"font_style": "italic",
"font_weight": null
},
"tag": {
"color": "#89b4fa",
"font_style": null,
Expand All @@ -1301,14 +1421,34 @@
"font_style": null,
"font_weight": null
},
"title": {
"color": "#cdd6f4",
"font_style": null,
"font_weight": 800
},
"type": {
"color": "#f9e2af",
"font_style": "italic",
"font_weight": null
},
"variable": {
"color": "#cdd6f4",
"font_style": "italic",
"font_style": null,
"font_weight": null
},
"variable.builtin": {
"color": "#f38ba8",
"font_style": null,
"font_weight": null
},
"variable.parameter": {
"color": "#eba0ac",
"font_style": null,
"font_weight": null
},
"variable.member": {
"color": "#b4befe",
"font_style": null,
"font_weight": null
},
"variable.special": {
Expand Down