Improved how customized highlight groups work

This commit is contained in:
Dreaded_X 2024-04-16 03:53:39 +02:00
parent a0ec7e7784
commit 7b9e749477
Signed by: Dreaded_X
GPG Key ID: FA5F485356B0D2D4
2 changed files with 10 additions and 9 deletions

View File

@ -26,7 +26,7 @@ return {
end, end,
}, },
window = { window = {
completion = cmp.config.window.bordered({ border = border, winhighlight = "CursorLine:YankHighlight" }), completion = cmp.config.window.bordered({ border = border, winhighlight = "CursorLine:CmpSelection" }),
documentation = cmp.config.window.bordered({ border = border }), documentation = cmp.config.window.bordered({ border = border }),
}, },
-- Include the source of the cmp entry -- Include the source of the cmp entry

View File

@ -14,24 +14,25 @@ return {
}, },
overrides = { overrides = {
YankHighlight = { fg = colors.blue, bg = colors.bg0, reverse = config.inverse }, YankHighlight = { fg = colors.blue, bg = colors.bg0, reverse = config.inverse },
IncSearch = { fg = colors.aqua },
Search = { fg = colors.aqua }, Search = { fg = colors.aqua },
IncSearch = { link = "Search" },
NormalFloat = { bg = colors.bg0 }, NormalFloat = { bg = colors.bg0 },
FloatBorder = { fg = colors.bg4 }, FloatBorder = { fg = colors.bg4 },
TelescopePromptTitle = { fg = colors.fg4 }, TelescopePromptTitle = { fg = colors.fg4 },
TelescopePromptBorder = { fg = colors.bg4 }, TelescopePromptBorder = { link = "FloatBorder" },
TelescopePromptPrefix = { fg = colors.red }, TelescopePromptPrefix = { fg = colors.red },
TelescopePreviewTitle = { fg = colors.fg4 }, TelescopePreviewTitle = { link = "TelescopePreviewTitle" },
TelescopePreviewBorder = { fg = colors.bg4 }, TelescopePreviewBorder = { link = "FloatBorder" },
TelescopeResultsTitle = { fg = colors.fg4 }, TelescopeResultsTitle = { link = "TelescopePreviewTitle" },
TelescopeResultsBorder = { fg = colors.bg4 }, TelescopeResultsBorder = { link = "FloatBorder" },
TelescopeMatching = { fg = colors.aqua, bold = true }, TelescopeMatching = { fg = colors.aqua, bold = true },
TelescopeSelection = { fg = colors.blue }, TelescopeSelection = { fg = colors.blue },
TelescopeSelectionCaret = { fg = colors.red }, TelescopeSelectionCaret = { link = "TelescopeSelection" },
CmpItemAbbrMatch = { fg = colors.aqua, bold = true }, CmpItemAbbrMatch = { fg = colors.aqua, bold = true },
CmpItemAbbrMatchFuzzy = { fg = colors.aqua, bold = true }, CmpItemAbbrMatchFuzzy = { link = "CmpItemAbbrMatch" },
CmpItemMenu = { fg = colors.bg2 }, CmpItemMenu = { fg = colors.bg2 },
CmpItemKindFunction = { fg = colors.red }, CmpItemKindFunction = { fg = colors.red },
CmpSelection = { fg = colors.bg0, bg = colors.blue },
LspReferenceText = { fg = colors.bg0, bg = colors.neutral_purple }, LspReferenceText = { fg = colors.bg0, bg = colors.neutral_purple },
LspReferenceRead = { link = "LspReferenceText" }, LspReferenceRead = { link = "LspReferenceText" },
LspReferenceWrite = { link = "LspReferenceText" }, LspReferenceWrite = { link = "LspReferenceText" },