farout.nvim/lua/tokyonight/extra/delta.lua

29 lines
757 B
Lua
Raw Normal View History

local util = require("tokyonight.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
2022-11-10 17:17:53 +00:00
colors.delta = {
add = util.darken(colors.green2, 0.45),
delete = util.darken(colors.red1, 0.45),
}
local delta = util.template(
[[
[delta]
minus-style = syntax "${diff.delete}"
minus-non-emph-style = syntax "${diff.delete}"
2022-11-10 17:17:53 +00:00
minus-emph-style = syntax "${delta.delete}"
minus-empty-line-marker-style = syntax "${diff.delete}"
plus-style = syntax "${diff.add}"
plus-non-emph-style = syntax "${diff.add}"
2022-11-10 17:17:53 +00:00
plus-emph-style = syntax "${delta.add}"
plus-empty-line-marker-style = syntax "${diff.add}"
]],
colors
)
return delta
end
return M