fix(delta): move color defs to colors so it works properly with the day theme. Fixes #362

This commit is contained in:
Folke Lemaitre
2023-04-22 09:24:01 +02:00
parent ff81eac0ec
commit d78d3de58c
2 changed files with 5 additions and 4 deletions

View File

@@ -149,6 +149,11 @@ function M.setup(opts)
colors.info = colors.blue2
colors.hint = colors.teal
colors.delta = {
add = util.darken(colors.green2, 0.45),
delete = util.darken(colors.red1, 0.45),
}
config.options.on_colors(colors)
if opts.transform and config.is_day() then
util.invert_colors(colors)

View File

@@ -4,10 +4,6 @@ local M = {}
--- @param colors ColorScheme
function M.generate(colors)
colors.delta = {
add = util.darken(colors.green2, 0.45),
delete = util.darken(colors.red1, 0.45),
}
local delta = util.template(
[[
[delta]