mirror of
https://github.com/webhooked/kanso.nvim.git
synced 2026-06-05 08:37:02 +02:00
Add config field to disable bold styles across the whole theme
This commit is contained in:
parent
f7080992e7
commit
aaa72b68b6
6 changed files with 649 additions and 575 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue