Color fixes C/C++

This commit is contained in:
2023-12-21 12:16:19 +01:00
parent c6d24242e5
commit 27733590d2
2 changed files with 7 additions and 3 deletions

View File

@@ -2,5 +2,8 @@ return function()
return { return {
cInclude = { link = "PreProc" }, cInclude = { link = "PreProc" },
cDefine = { link = "PreProc" }, -- Fix C ft setting this to Macro cDefine = { link = "PreProc" }, -- Fix C ft setting this to Macro
["@include.c"] = { link = "PreProc" }, -- Not a keyword
["@include.cpp"] = { link = "PreProc" },
} }
end end

View File

@@ -21,7 +21,7 @@ return function(palette)
Number = { fg = palette.yellow, bg = palette.none }, Number = { fg = palette.yellow, bg = palette.none },
Operator = { fg = palette.orange, bg = palette.none }, Operator = { fg = palette.orange, bg = palette.none },
PreCondit = { link = "PreProc" }, PreCondit = { link = "PreProc" },
PreProc = { fg = palette.gray, bg = palette.none }, PreProc = { fg = palette.bg_gradiant[4], bg = palette.none },
Repeat = { link = "Keyword" }, Repeat = { link = "Keyword" },
Special = { fg = palette.blue, bg = palette.none }, Special = { fg = palette.blue, bg = palette.none },
SpecialChar = { fg = palette.aqua, bg = palette.none }, SpecialChar = { fg = palette.aqua, bg = palette.none },
@@ -56,7 +56,7 @@ return function(palette)
["@boolean"] = { link = "Boolean" }, ["@boolean"] = { link = "Boolean" },
["@character"] = { link = "Character" }, ["@character"] = { link = "Character" },
["@character.special"] = { link = "SpecialChar" }, ["@character.special"] = { link = "SpecialChar" },
["@class"] = { fg = palette.yellow }, ["@class"] = { link = "Type" },
["@comment"] = { link = "Comment" }, ["@comment"] = { link = "Comment" },
["@comment.documentation"] = { fg = palette.gray, bg = palette.none, nocombine = true }, ["@comment.documentation"] = { fg = palette.gray, bg = palette.none, nocombine = true },
["@conditional"] = { link = "Conditional" }, ["@conditional"] = { link = "Conditional" },
@@ -100,7 +100,7 @@ return function(palette)
["@string.escape"] = { fg = palette.red }, ["@string.escape"] = { fg = palette.red },
["@string.regex"] = { fg = palette.aqua }, ["@string.regex"] = { fg = palette.aqua },
["@string.special"] = { link = "Special" }, ["@string.special"] = { link = "Special" },
["@struct"] = { fg = palette.yellow }, ["@struct"] = { link = "Type" },
["@symbol"] = { link = "Special" }, ["@symbol"] = { link = "Special" },
["@tag"] = { fg = palette.red }, ["@tag"] = { fg = palette.red },
["@tag.attribute"] = { fg = palette.yellow }, ["@tag.attribute"] = { fg = palette.yellow },
@@ -146,6 +146,7 @@ return function(palette)
["@lsp.mod.documentation"] = { link = "@comment.documentation" }, ["@lsp.mod.documentation"] = { link = "@comment.documentation" },
["@lsp.type"] = { link = "@type" }, ["@lsp.type"] = { link = "@type" },
["@lsp.type.attributeBracket"] = { fg = palette.orange }, ["@lsp.type.attributeBracket"] = { fg = palette.orange },
["@lsp.type.class"] = { link = "@class" },
["@lsp.type.derive"] = { fg = palette.orange }, ["@lsp.type.derive"] = { fg = palette.orange },
["@lsp.type.enum"] = { link = "@enum" }, ["@lsp.type.enum"] = { link = "@enum" },
["@lsp.type.enumMember"] = { link = "@enumMember" }, ["@lsp.type.enumMember"] = { link = "@enumMember" },