Improved how customized highlight groups work
This commit is contained in:
parent
a0ec7e7784
commit
7b9e749477
|
@ -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
|
||||||
|
|
|
@ -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" },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user