Add option to disable italic styling
This commit is contained in:
@@ -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 },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user