|
|
@ -1,10 +1,15 @@
|
|
|
|
local M = {}
|
|
|
|
local M = {}
|
|
|
|
|
|
|
|
|
|
|
|
function M.get(cp)
|
|
|
|
function M.get(cp)
|
|
|
|
|
|
|
|
local cnf = require("catppuccin.config").options
|
|
|
|
|
|
|
|
local bg_highlight = (cnf.transparent_background and cnf.dim_inactive and cp.dim)
|
|
|
|
|
|
|
|
or (cnf.transparent_background and "NONE")
|
|
|
|
|
|
|
|
or (cnf.dim_inactive and cp.dim)
|
|
|
|
|
|
|
|
or cp.base
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
GitSignsAdd = { fg = cp.green, bg = cnf.transparent_background and cp.none or cp.base }, -- diff mode: Added line |diff.txt|
|
|
|
|
GitSignsAdd = { fg = cp.green, bg = bg_highlight }, -- diff mode: Added line |diff.txt|
|
|
|
|
GitSignsChange = { fg = cp.yellow, bg = cnf.transparent_background and cp.none or cp.base }, -- diff mode: Changed line |diff.txt|
|
|
|
|
GitSignsChange = { fg = cp.yellow, bg = bg_highlight }, -- diff mode: Changed line |diff.txt|
|
|
|
|
GitSignsDelete = { fg = cp.red, bg = cnf.transparent_background and cp.none or cp.base }, -- diff mode: Deleted line |diff.txt|
|
|
|
|
GitSignsDelete = { fg = cp.red, bg = bg_highlight }, -- diff mode: Deleted line |diff.txt|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|