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,
},
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 }),
},
-- Include the source of the cmp entry

View File

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