Skip to content

Commit 372f8cf

Browse files
committed
fix(treesitter): do not set fallback for @type.builtin
`styles.properties` is set as `{}` in the default config, which is truthy in Lua. Therefore, to actually fallback to italic, users would have to set `styles.properties` to `nil` (which I'm assuming is unintended behavior). Alternatively, `@type.builtin` could be italic by default.
1 parent af58927 commit 372f8cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/catppuccin/groups/treesitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ If you want to stay on nvim 0.7, pin catppuccin tag to v0.2.4 and nvim-treesitte
4646

4747
-- Types
4848
["@type"] = { link = "Type" }, -- For types.
49-
["@type.builtin"] = { fg = C.mauve, style = O.styles.properties or { "italic" } }, -- For builtin types.
49+
["@type.builtin"] = { fg = C.mauve, style = O.styles.properties or {} }, -- For builtin types.
5050
["@type.definition"] = { link = "Type" }, -- type definitions (e.g. `typedef` in C)
5151

5252
["@attribute"] = { link = "Constant" }, -- attribute annotations (e.g. Python decorators)

0 commit comments

Comments
 (0)