Add config field to disable bold styles across the whole theme
This commit is contained in:
@@ -9,8 +9,11 @@ function M.setup(colors, config)
|
||||
|
||||
return {
|
||||
-- *Comment any comment
|
||||
Comment = vim.tbl_extend("force", { fg = theme.syn.comment }, config.disableItalics and {} or config
|
||||
.commentStyle),
|
||||
Comment = vim.tbl_extend(
|
||||
"force",
|
||||
{ fg = theme.syn.comment },
|
||||
config.disableItalics and {} or config.commentStyle
|
||||
),
|
||||
|
||||
-- *Constant any constant
|
||||
Constant = { fg = theme.syn.constant },
|
||||
@@ -38,8 +41,11 @@ function M.setup(colors, config)
|
||||
-- Operator "sizeof", "+", "*", etc.
|
||||
Operator = { fg = theme.syn.operator },
|
||||
-- Keyword any other keyword
|
||||
Keyword = vim.tbl_extend("force", { fg = theme.syn.keyword }, config.disableItalics and {} or config
|
||||
.keywordStyle),
|
||||
Keyword = vim.tbl_extend(
|
||||
"force",
|
||||
{ fg = theme.syn.keyword },
|
||||
config.disableItalics and {} or config.keywordStyle
|
||||
),
|
||||
-- Exception try, catch, throw
|
||||
Exception = { fg = theme.syn.special2 },
|
||||
|
||||
@@ -67,7 +73,7 @@ function M.setup(colors, config)
|
||||
|
||||
-- *Underlined text that stands out, HTML links
|
||||
Underlined = { fg = theme.syn.special1, underline = true },
|
||||
Bold = { bold = true },
|
||||
Bold = { bold = config.bold },
|
||||
Italic = { italic = not config.disableItalics },
|
||||
|
||||
-- *Ignore left blank, hidden |hl-Ignore|
|
||||
@@ -77,7 +83,7 @@ function M.setup(colors, config)
|
||||
Error = { fg = theme.diag.error },
|
||||
|
||||
-- *Todo anything that needs extra attention; mostly the keywords TODO FIXME WARNING and XXX
|
||||
Todo = { fg = theme.ui.fg_reverse, bg = theme.diag.info, bold = true },
|
||||
Todo = { fg = theme.ui.fg_reverse, bg = theme.diag.info, bold = config.bold },
|
||||
|
||||
qfLineNr = { link = "lineNr" },
|
||||
qfFileName = { link = "Directory" },
|
||||
|
||||
Reference in New Issue
Block a user