feat: better highlight style for delta
This commit is contained in:
parent
6bd44c946c
commit
6572022433
@ -4,16 +4,20 @@ local M = {}
|
|||||||
|
|
||||||
--- @param colors ColorScheme
|
--- @param colors ColorScheme
|
||||||
function M.generate(colors)
|
function M.generate(colors)
|
||||||
|
colors.delta = {
|
||||||
|
add = util.darken(colors.green2, 0.45),
|
||||||
|
delete = util.darken(colors.red1, 0.45),
|
||||||
|
}
|
||||||
local delta = util.template(
|
local delta = util.template(
|
||||||
[[
|
[[
|
||||||
[delta]
|
[delta]
|
||||||
minus-style = syntax "${diff.delete}"
|
minus-style = syntax "${diff.delete}"
|
||||||
minus-non-emph-style = syntax "${diff.delete}"
|
minus-non-emph-style = syntax "${diff.delete}"
|
||||||
minus-emph-style = "${black}" "${red1}"
|
minus-emph-style = syntax "${delta.delete}"
|
||||||
minus-empty-line-marker-style = syntax "${diff.delete}"
|
minus-empty-line-marker-style = syntax "${diff.delete}"
|
||||||
plus-style = syntax "${diff.add}"
|
plus-style = syntax "${diff.add}"
|
||||||
plus-non-emph-style = syntax "${diff.add}"
|
plus-non-emph-style = syntax "${diff.add}"
|
||||||
plus-emph-style = "${black}" "${green2}"
|
plus-emph-style = syntax "${delta.add}"
|
||||||
plus-empty-line-marker-style = syntax "${diff.add}"
|
plus-empty-line-marker-style = syntax "${diff.add}"
|
||||||
]],
|
]],
|
||||||
colors
|
colors
|
||||||
|
Loading…
Reference in New Issue
Block a user