Skip to content

Commit e16acba

Browse files
committed
feat(extensions): add support for blink.cmp
1 parent 1af5dbd commit e16acba

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

lua/cyberdream/config.lua

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ local M = {}
2525

2626
---@class extensions
2727
---@field alpha? boolean
28+
---@field blinkcmp? boolean
2829
---@field cmp? boolean
2930
---@field dashboard? boolean
3031
---@field fzflua? boolean
@@ -76,6 +77,7 @@ local default_options = {
7677

7778
extensions = {
7879
alpha = true,
80+
blinkcmp = true,
7981
cmp = true,
8082
dashboard = true,
8183
fzflua = true,
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
local M = {}
2+
local util = require("cyberdream.util")
3+
4+
--- Get extension configuration
5+
--- @param opts Config
6+
--- @param t CyberdreamPalette
7+
function M.get(opts, t)
8+
opts = opts or {}
9+
local highlights = {
10+
BlinkCmpMenu = { link = "Pmenu" },
11+
BlinkCmpMenuBorder = { fg = util.blend(t.bgHighlight, t.grey, 0.7) },
12+
BlinkCmpMenuSelection = { bg = t.bgHighlight },
13+
BlinkCmpLabel = { link = "Normal" },
14+
BlinkCmpLabelDeprecated = { fg = t.grey, strikethrough = true },
15+
BlinkCmpLabelMatch = { fg = t.cyan },
16+
BlinkCmpDoc = { link = "NormalFloat" },
17+
BlinkCmpDocBorder = { link = "BlinkCmpMenuBorder" },
18+
BlinkCmpDocCursorLine = { link = "Visual" },
19+
BlinkCmpSignatureHelp = { link = "NormalFloat" },
20+
BlinkCmpSignatureHelpBorder = { link = "BlinkCmpMenuBorder" },
21+
BlinkCmpSignatureHelpActiveParameter = { fg = t.cyan },
22+
23+
-- Kinds
24+
BlinkCmpKindText = { fg = t.green },
25+
BlinkCmpKindMethod = { fg = t.blue },
26+
BlinkCmpKindFunction = { fg = t.blue },
27+
BlinkCmpKindConstructor = { fg = t.purple },
28+
29+
BlinkCmpKindField = { fg = t.green },
30+
BlinkCmpKindVariable = { fg = t.orange },
31+
BlinkCmpKindProperty = { fg = t.red },
32+
33+
BlinkCmpKindClass = { fg = t.blue },
34+
BlinkCmpKindInterface = { fg = t.blue },
35+
BlinkCmpKindStruct = { fg = t.blue },
36+
BlinkCmpKindModule = { fg = t.blue },
37+
38+
BlinkCmpKindUnit = { fg = t.orange },
39+
BlinkCmpKindValue = { fg = t.orange },
40+
BlinkCmpKindEnum = { fg = t.orange },
41+
BlinkCmpKindEnumMember = { fg = t.orange },
42+
43+
BlinkCmpKindKeyword = { fg = t.magenta },
44+
BlinkCmpKindConstant = { fg = t.pink },
45+
46+
BlinkCmpKindSnippet = { fg = t.green },
47+
BlinkCmpKindColor = { fg = t.green },
48+
BlinkCmpKindFile = { fg = t.green },
49+
BlinkCmpKindReference = { fg = t.green },
50+
BlinkCmpKindFolder = { fg = t.green },
51+
BlinkCmpKindEvent = { fg = t.green },
52+
BlinkCmpKindOperator = { fg = t.magenta },
53+
BlinkCmpKindTypeParameter = { fg = t.pink },
54+
}
55+
56+
return highlights
57+
end
58+
return M

0 commit comments

Comments
 (0)