feat: improve baseline highlight group definitions
trickyni trickyniv56@gmail.com
Wed, 03 Dec 2025 09:19:51 +0200
2 files changed,
25 insertions(+),
24 deletions(-)
M
lua/desert-witch/init.lua
→
lua/desert-witch/init.lua
@@ -24,7 +24,6 @@
local hl_groups = { Normal = { fg = fg, bg = bg }, BaseText = { fg = fg }, - Value = { fg = sand }, Visual = { fg = bg, bg = saffron }, NormalNC = { bg = bg75 }, ComplMatchIns = {},@@ -103,7 +102,7 @@ -- WinSeparator = {},
--Syntax ----------------------------------- Comment = { fg = bg25 }, - Constant = { link = "BaseText" }, + Constant = { fg = orange }, String = { fg = sand }, Character = { link = "BaseText" }, Number = { fg = moss },@@ -111,26 +110,26 @@ Boolean = { link = "Number" },
Float = { link = "Number" }, Identifier = { link = "BaseText" }, Function = { link = "BaseText" }, - Statement = { link = "BaseText" }, - Conditional = { link = "BaseText" }, - Repeat = { link = "BaseText" }, - Label = { link = "BaseText" }, + Statement = { fg = scarlet }, + -- Conditional = { link = "BaseText" }, + -- Repeat = { link = "BaseText" }, + -- Label = { link = "BaseText" }, Operator = { link = "BaseText" }, Keyword = { fg = scarlet }, - Exception = { link = "BaseText" }, + -- Exception = { link = "BaseText" }, PreProc = { link = "BaseText" }, Include = { link = "BaseText" }, Define = { link = "BaseText" }, Macro = { link = "BaseText" }, PreCondit = { link = "BaseText" }, - Type = { link = "BaseText" }, - StorageClass = { link = "BaseText" }, - Structure = { link = "BaseText" }, - Typedef = { link = "BaseText" }, + Type = { fg = orange }, + -- StorageClass = { link = "BaseText" }, + -- Structure = { link = "BaseText" }, + -- Typedef = { link = "BaseText" }, Special = { link = "BaseText" }, SpecialChar = { link = "BaseText" }, Tag = { fg = orange }, - Delimiter = { link = "BaseText" }, + -- Delimiter = { link = "BaseText" }, -- SpecialComment = {}, -- Debug = {}, -- Ignore = {},@@ -145,26 +144,26 @@ -- ["@variable.builtin"] = {fg=orange},
-- ["@variable.parameter"] = {fg=orange}, -- ["@variable.parameter.builtin"] = {fg=orange}, ["@variable.member"] = { fg = fg }, - ["@constant"] = { fg = orange }, + ["@constant"] = { link = "Constant" }, -- ["@constant.builtin"] = {}, -- ["@constant.macro"] = {}, -- ["@module"] = {}, -- ["@module.builtin"] = {}, -- ["@label"] = {}, - ["@string"] = { link = "Value" }, - -- ["@string.documentation"] = {link="Value"}, + ["@string"] = { link = "String" }, + -- ["@string.documentation"] = {link="String"}, ["@string.regexp"] = { fg = cyan }, - -- ["@string.escape"] = {link="Value"}, - -- ["@string.special"] = {link="Value"}, - -- ["@string.special.symbol"] = {link="Value"}, - -- ["@string.special.url"] = {link="Value"}, - -- ["@string.special.path"] = {link="Value"}, - -- ["@character"] = {link="Value"}, + -- ["@string.escape"] = {link="String"}, + -- ["@string.special"] = {link="String"}, + -- ["@string.special.symbol"] = {link="String"}, + -- ["@string.special.url"] = {link="String"}, + -- ["@string.special.path"] = {link="String"}, + -- ["@character"] = {link="String"}, ["@character.special"] = { fg = saffron }, ["@boolean"] = { link = "Number" }, ["@number"] = { link = "Number" }, ["@number.float"] = { link = "Number" }, - ["@type"] = { fg = orange }, + ["@type"] = { link = "Type" }, -- ["@type.builtin"] = {}, -- ["@type.definition"] = {}, -- ["@attribute"] = {},@@ -183,7 +182,7 @@ ["@operator.regex"] = { fg = cyan },
["@keyword"] = { link = "Keyword" }, -- ["@keyword.repeat"] = { fg = orange }, -- ["@keyword.conditional"] = { fg = orange }, - -- ["@keyword.conditional.ternary"] = { fg = orange }, + ["@keyword.conditional.ternary"] = { fg = scarlet }, -- ["@keyword.coroutine"] = {}, -- ["@keyword.function"] = { fg = scarlet }, -- ["@keyword.operator"] = {},@@ -232,6 +231,8 @@ ["@tag"] = { link = "Tag" },
--["@tag.builtin"]={}, ["@tag.attribute"] = { fg = saffron }, --["@tag.delimiter"]={}, + + ["@lsp.type.operator"] = { link = "@keyword.conditional.ternary" }, --Diagnostics---------------------------------------- DiagnosticError = { fg = scarlet },