forked from scottmckendry/cyberdream.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitsigns.lua
27 lines (22 loc) · 815 Bytes
/
gitsigns.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
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 = {
GitSignsAdd = { fg = t.green },
GitSignsChange = { fg = t.orange },
GitSignsDelete = { fg = t.red },
GitSignsAddLn = { link = "DiffAdd" },
GitSignsChangeLn = { link = "DiffChange" },
GitSignsDeleteLn = { link = "DiffDelete" },
GitSignsAddInline = { bg = util.blend(t.bg_solid, t.green, 0.9) },
GitSignsChangeInline = { bg = util.blend(t.bg_solid, t.blue, 0.9) },
GitSignsDeleteInline = { bg = util.blend(t.bg_solid, t.red, 0.9) },
GitSignsCurrentLineBlame = { link = "LineNr" },
}
return highlights
end
return M