-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathutil.lua
40 lines (33 loc) · 942 Bytes
/
util.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
local M = {}
-- @param bc {table} basic colors
-- @param fc {table} functional colors
-- @return {table} colors
function M.make(bc, fc)
return vim.tbl_deep_extend('force', bc, {
cursorLine = fc.cursorLine or bc.darkBlue,
cursorLineNrFG = bc.blue,
cursorLineNrBG = fc.cursorLine or bc.darkBlue,
BG = fc.BG or bc.black,
NC_BG = fc.NC_BG or bc.grey1,
WinSeparatorBG = fc.WinSeparatorBG,
ColorColumnBG = fc.ColorColumnBG or bc.grey2,
floatWinBG = bc.black,
linkFG = fc.linkFG,
comment = bc.grey,
scrollbarBG = fc.scrollbarBG,
menuItemBG = fc.menuItemBG or bc.darkBlue,
match = { fg = bc.orange },
git = { -- git colors. only fg colors
add = bc.green,
change = bc.yellow,
delete = bc.red,
},
diff = { -- diff color styles
add = { bg = bc.darkGreen },
delete = { fg = bc.red, bg = bc.darkRed },
change = { bg = bc.darkYellow },
text = { bg = fc.diff.text.bg },
},
}, fc)
end
return M