-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
cmp.lua
30 lines (28 loc) · 1.16 KB
/
cmp.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
local M = {}
--- Get extension configuration
--- @param opts Config
--- @param t CyberdreamPalette
function M.get(opts, t)
opts = opts or {}
local highlights = {
CmpDocumentation = { fg = t.grey, bg = t.bg },
CmpDocumentationBorder = { fg = t.grey, bg = t.bg },
CmpGhostText = { fg = t.grey, bg = t.bg },
CmpItemAbbr = { fg = t.fg, bg = t.bg },
CmpItemAbbrDeprecated = { fg = t.grey, bg = t.bg, strikethrough = true },
CmpItemAbbrMatch = { fg = t.purple, bg = t.bg },
CmpItemAbbrMatchFuzzy = { fg = t.purple, bg = t.bg },
CmpItemKindVariable = { fg = t.cyan, bg = t.bg },
CmpItemKindInterface = { fg = t.cyan, bg = t.bg },
CmpItemKindText = { fg = t.cyan, bg = t.bg },
CmpItemKindFunction = { fg = t.pink, bg = t.bg },
CmpItemKindMethod = { fg = t.pink, bg = t.bg },
CmpItemKindKeyword = { fg = t.fg, bg = t.bg },
CmpItemKindProperty = { fg = t.fg, bg = t.bg },
CmpItemKindUnit = { fg = t.fg, bg = t.bg },
CmpItemMenu = { fg = t.grey, bg = t.bg },
CmpItemKindDefault = { fg = t.grey, bg = t.bg },
}
return highlights
end
return M