feat\!: replace disableItalics with italics config option

Replace the negative boolean `disableItalics` with positive `italics` option for better API ergonomics. This affects all italic styling throughout the theme including comments, keywords, and plugin highlights.

BREAKING CHANGE: Users must update their configuration from `disableItalics = true` to `italics = false`.
This commit is contained in:
Webhooked committed 2025-05-31 14:11:00 +02:00
1 parent c0355d2c16
commit 138f08461f
5 files changed
+10 -18

No files matched your search

+2 -2
View File
@@ -62,7 +62,7 @@ function M.setup(colors, config)
NvimTreeSymlink = { link = "Type" },
NvimTreeFolderName = { link = "Directory" },
NvimTreeExecFile = { fg = theme.syn.string, bold = config.bold },
NvimTreeOpenedFile = { fg = theme.syn.special1, italic = not config.disableItalics },
NvimTreeOpenedFile = { fg = theme.syn.special1, italic = config.italics },
NvimTreeWinSeparator = { link = "WinSeparator" },
NvimTreeWindowPicker = {
bg = config.transparent and theme.ui.none or theme.ui.bg_m1,
@@ -482,7 +482,7 @@ function M.setup(colors, config)
NeotestFile = { fg = theme.syn.fun },
NeotestFocused = { bold = config.bold, underline = true },
NeotestIndent = { fg = theme.ui.special, bold = config.bold },
NeotestMarked = { fg = theme.diag.warning, italic = not config.disableItalics },
NeotestMarked = { fg = theme.diag.warning, italic = config.italics },
NeotestNamespace = { fg = theme.syn.fun },
NeotestPassed = { fg = theme.diag.ok },
NeotestRunning = { fg = theme.vcs.changed },