feat: added support for CmpKind hilight groups

This commit is contained in:
Folke Lemaitre
2021-11-30 09:06:50 +01:00
parent 2981e4bd09
commit 0d91764955

View File

@@ -409,12 +409,26 @@ function M.setup(config)
-- Cmp -- Cmp
CmpDocumentation = { fg = c.fg, bg = c.bg_float }, CmpDocumentation = { fg = c.fg, bg = c.bg_float },
CmpDocumentationBorder = { fg = c.border_highlight, bg = c.bg_float }, CmpDocumentationBorder = { fg = c.border_highlight, bg = c.bg_float },
CmpItemAbbr = { fg = c.fg, bg = c.none }, CmpItemAbbr = { fg = c.fg, bg = c.none },
CmpItemAbbrDeprecated = { fg = c.fg_gutter, bg = c.none }, CmpItemAbbrDeprecated = { fg = c.fg_gutter, bg = c.none, style = "strikethrough" },
CmpItemAbbrMatch = { fg = c.green1, bg = c.none }, CmpItemAbbrMatch = { fg = c.blue1, bg = c.none },
CmpItemAbbrMatchFuzzy = { fg = c.green1, bg = c.none }, CmpItemAbbrMatchFuzzy = { fg = c.blue1, bg = c.none },
CmpItemKind = { fg = c.teal, bg = c.none },
CmpItemKindDefault = { fg = c.fg_dark, bg = c.none },
CmpItemMenu = { fg = c.comment, bg = c.none }, CmpItemMenu = { fg = c.comment, bg = c.none },
CmpItemKindVariable = { fg = c.magenta, bg = c.none },
CmpItemKindFunction = { fg = c.blue, bg = c.none },
CmpItemKindMethod = { fg = c.blue, bg = c.none },
CmpItemKindClass = { fg = c.orange, bg = c.none },
CmpItemKindInterface = { fg = c.orange, bg = c.none },
CmpItemKindProperty = { fg = c.green1, bg = c.none },
CmpItemKindField = { fg = c.green1, bg = c.none },
CmpItemKindSnippet = { fg = c.dark5, bg = c.none },
} }
theme.defer = {} theme.defer = {}