Skip to content

Commit

Permalink
feat: added support for CmpKind hilight groups
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 30, 2021
1 parent 2981e4b commit 0d91764
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions lua/tokyonight/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,26 @@ function M.setup(config)
-- Cmp
CmpDocumentation = { fg = c.fg, bg = c.bg_float },
CmpDocumentationBorder = { fg = c.border_highlight, bg = c.bg_float },

CmpItemAbbr = { fg = c.fg, bg = c.none },
CmpItemAbbrDeprecated = { fg = c.fg_gutter, bg = c.none },
CmpItemAbbrMatch = { fg = c.green1, bg = c.none },
CmpItemAbbrMatchFuzzy = { fg = c.green1, bg = c.none },
CmpItemKind = { fg = c.teal, bg = c.none },
CmpItemAbbrDeprecated = { fg = c.fg_gutter, bg = c.none, style = "strikethrough" },
CmpItemAbbrMatch = { fg = c.blue1, bg = c.none },
CmpItemAbbrMatchFuzzy = { fg = c.blue1, bg = c.none },

CmpItemKindDefault = { fg = c.fg_dark, 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 = {}
Expand Down

0 comments on commit 0d91764

Please sign in to comment.