-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
blinkcmp.lua
58 lines (50 loc) · 2.12 KB
/
blinkcmp.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
local M = {}
local util = require("cyberdream.util")
--- Get extension configuration
--- @param opts Config
--- @param t CyberdreamPalette
function M.get(opts, t)
opts = opts or {}
local highlights = {
BlinkCmpMenu = { link = "Pmenu" },
BlinkCmpMenuBorder = { fg = util.blend(t.bgHighlight, t.grey, 0.7) },
BlinkCmpMenuSelection = { bg = t.bgHighlight },
BlinkCmpLabel = { link = "Normal" },
BlinkCmpLabelDeprecated = { fg = t.grey, strikethrough = true },
BlinkCmpLabelMatch = { fg = t.cyan },
BlinkCmpDoc = { link = "NormalFloat" },
BlinkCmpDocBorder = { link = "BlinkCmpMenuBorder" },
BlinkCmpDocCursorLine = { link = "Visual" },
BlinkCmpSignatureHelp = { link = "NormalFloat" },
BlinkCmpSignatureHelpBorder = { link = "BlinkCmpMenuBorder" },
BlinkCmpSignatureHelpActiveParameter = { fg = t.cyan },
-- Kinds
BlinkCmpKindText = { fg = t.green },
BlinkCmpKindMethod = { fg = t.blue },
BlinkCmpKindFunction = { fg = t.blue },
BlinkCmpKindConstructor = { fg = t.purple },
BlinkCmpKindField = { fg = t.green },
BlinkCmpKindVariable = { fg = t.orange },
BlinkCmpKindProperty = { fg = t.red },
BlinkCmpKindClass = { fg = t.blue },
BlinkCmpKindInterface = { fg = t.blue },
BlinkCmpKindStruct = { fg = t.blue },
BlinkCmpKindModule = { fg = t.blue },
BlinkCmpKindUnit = { fg = t.orange },
BlinkCmpKindValue = { fg = t.orange },
BlinkCmpKindEnum = { fg = t.orange },
BlinkCmpKindEnumMember = { fg = t.orange },
BlinkCmpKindKeyword = { fg = t.magenta },
BlinkCmpKindConstant = { fg = t.pink },
BlinkCmpKindSnippet = { fg = t.green },
BlinkCmpKindColor = { fg = t.green },
BlinkCmpKindFile = { fg = t.green },
BlinkCmpKindReference = { fg = t.green },
BlinkCmpKindFolder = { fg = t.green },
BlinkCmpKindEvent = { fg = t.green },
BlinkCmpKindOperator = { fg = t.magenta },
BlinkCmpKindTypeParameter = { fg = t.pink },
}
return highlights
end
return M