Skip to content

Commit

Permalink
add highlights for cmpkind
Browse files Browse the repository at this point in the history
  • Loading branch information
siduck committed May 3, 2022
1 parent f712406 commit 15a1b91
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 7 deletions.
34 changes: 34 additions & 0 deletions lua/integrations/cmp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
local theme = require("base16").get_colors "base_16"
local base_30 = require("base16").get_colors "base_30"

return {
CmpItemKindConstant = { fg = theme.base09 },
CmpItemKindFunction = { fg = theme.base0D },
CmpItemKindIdentifier = { fg = theme.base08 },
CmpItemKindField = { fg = theme.base08 },
CmpItemKindVariable = { fg = theme.base0E },
Special = { fg = theme.base0C },
CmpItemKindSnippet = { fg = base_30.red },
CmpItemKindText = { fg = theme.base0B },
CmpItemKindStructure = { fg = theme.base0E },
CmpItemKindType = { fg = theme.base0A },
CmpItemKindKeyword = { fg = theme.base07 },
CmpItemKindMethod = { fg = theme.base0D },
CmpItemKindConstructor = { fg = base_30.blue },
CmpItemKindFolder = { fg = theme.base07 },
CmpItemKindModule = { fg = theme.base0A },
CmpItemKindProperty = { fg = theme.base08 },
-- CmpItemKindEnum = { fg = "" },
CmpItemKindUnit = { fg = theme.base0E },
-- CmpItemKindClass = { fg = "" },
CmpItemKindFile = { fg = theme.base07 },
-- CmpItemKindInterface = { fg = "" },
CmpItemKindColor = { fg = base_30.red },
CmpItemKindReference = { fg = theme.base05 },
-- CmpItemKindEnumMember = { fg = "" },
CmpItemKindStruct = { fg = theme.base0E },
-- CmpItemKindValue = { fg = "" },
-- CmpItemKindEvent = { fg = "" },
CmpItemKindOperator = { fg = theme.base05 },
CmpItemKindTypeParameter = { fg = theme.base08 },
}
13 changes: 6 additions & 7 deletions lua/integrations/nvchad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ local grey = colors.grey
local grey_fg = colors.grey_fg
local light_grey = colors.light_grey
local line = colors.line
local nord_blue = colors.nord_blue
local one_bg = colors.one_bg
local one_bg2 = colors.one_bg2
local pmenu_bg = colors.pmenu_bg
Expand All @@ -38,16 +37,16 @@ local defaults = {
NormalFloat = { bg = darker_black },

-- Pmenu i.e completion menu
Pmenu = { bg = one_bg },
PmenuSbar = { bg = one_bg2 },
Pmenu = { bg = black },
PmenuSbar = { bg = one_bg },
PmenuSel = { bg = pmenu_bg, fg = black },
PmenuThumb = { bg = nord_blue },
PmenuThumb = { bg = grey },

-- nvim cmp
CmpItemAbbr = { fg = white },
CmpItemAbbrMatch = { fg = white },
CmpItemKind = { fg = white },
CmpItemMenu = { fg = white },
CmpItemAbbrMatch = { fg = blue, bold = true },
CmpBorder = { fg = grey },
CmpDocBorder = { fg = grey },

NvimInternalError = { fg = red },
WinSeparator = { fg = one_bg2 },
Expand Down

0 comments on commit 15a1b91

Please sign in to comment.