-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
fzflua.lua
34 lines (28 loc) · 970 Bytes
/
fzflua.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
local M = {}
--- Get extension configuration
--- @param opts Config
--- @param t CyberdreamPalette
function M.get(opts, t)
opts = opts or {}
local highlights = {
FzfLuaNormal = { bg = t.bgAlt },
FzfLuaPreviewNormal = { bg = t.bgAlt },
FzfLuaBorder = { fg = t.bgAlt, bg = t.bgAlt },
FzfLuaTitle = { bg = t.blue, fg = t.bgAlt },
FzfLuaFzfMatch = { fg = t.cyan },
FzfLuaFzfQuery = { fg = t.blue },
FzfLuaFzfPrompt = { fg = t.fg },
FzfLuaFzfGutter = { bg = t.bgAlt },
FzfLuaFzfPointer = { fg = t.pink },
FzfLuaFzfHeader = { fg = t.purple },
FzfLuaFzfInfo = { fg = t.cyan },
}
if not opts.borderless_telescope then
highlights.FzfLuaNormal.bg = t.bg
highlights.FzfLuaPreviewNormal.bg = t.bg
highlights.FzfLuaBorder = { link = "FloatBorder" }
highlights.FzfLuaTitle = { link = "FloatTitle" }
end
return highlights
end
return M