Repository navigation
How to disable all italics but keep Comment italic? #990
|
I have tried: {
no_italic = true,
custom_highlights = function(colors)
return {
Comment = { fg = colors.surface2, style = { "italic" } },
-- or
Comment = { fg = colors.surface2, italic =true } },
}
end,
} |
Answered by
shreechaturvedi
Aug 26, 2026
Replies: 1 comment 3 replies
|
Use the require("catppuccin").setup {
styles = {
comments = { "italic" },
conditionals = {},
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
miscs = {},
},
lsp_styles = {
virtual_text = {
errors = {},
hints = {},
warnings = {},
information = {},
ok = {},
},
},
} |
3 replies
Answer selected by
comfysage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the
stylestable for this. Keep comments italic, empty the other groups (conditionalsis italic by default), and setmiscs = {}so treesitter drops the leftover italics on@moduleand tags. Leaveno_italicoff. The compiler applies that flag after merge, so your Comment override gets stripped. Clearlsp_styles.virtual_texttoo or you'll still have italic diagnostics. Put this in your existingsetupand run:CatppuccinCompileafter you save.