Add option to disable italic styling

This commit is contained in:
Webhooked
2025-05-07 11:49:57 +02:00
parent 921f85c99a
commit 6d7770eda6
5 changed files with 13 additions and 8 deletions
+2 -1
View File
@@ -81,6 +81,7 @@ require('kanso').setup({
keywordStyle = { italic = true},
statementStyle = {},
typeStyle = {},
disableItalics = false,
transparent = false, -- do not set background color
dimInactive = false, -- dim inactive window `:h hl-NormalNC`
terminalColors = true, -- define vim.g.terminal_color_{0,17}
@@ -233,7 +234,7 @@ require('kanso').setup({
overrides = function(colors)
return {
-- Assign a static color to strings
String = { fg = colors.palette.carpYellow, italic = true },
String = { fg = colors.palette.carpYellow, italic = not config.disableItalics },
-- theme colors will update dynamically when you change theme!
SomePluginHl = { fg = colors.theme.syn.type, bold = true },
}