nvim icon indicating copy to clipboard operation
nvim copied to clipboard

fix(treesitter): set `@type.builtin` as italic

Open igorlfs opened this issue 2 months ago • 2 comments

Hello,

styles.properties is set as {} in the default config, which is truthy in Lua. Therefore, to actually fall back 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.

igorlfs avatar Oct 14 '25 01:10 igorlfs

hi, great observation. could you - as you suggested - also set the default option for types to italic?

comfysage avatar Oct 25 '25 12:10 comfysage

also set the default option for types to italic?

Done! I removed the O.styles.properties, not sure if keeping it makes much sense? Setting that to italic would obviously affect some other stuff.

igorlfs avatar Oct 25 '25 15:10 igorlfs