feat: added extra styles for delta. Use in combination with bat styles

This commit is contained in:
Folke Lemaitre 2022-11-10 18:12:24 +01:00
parent 053562c9dc
commit 6bd44c946c
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
6 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[delta]
minus-style = syntax "#37222c"
minus-non-emph-style = syntax "#37222c"
minus-emph-style = "#15161e" "#db4b4b"
minus-empty-line-marker-style = syntax "#37222c"
plus-style = syntax "#20303b"
plus-non-emph-style = syntax "#20303b"
plus-emph-style = "#15161e" "#41a6b5"
plus-empty-line-marker-style = syntax "#20303b"

View File

@ -0,0 +1,9 @@
[delta]
minus-style = syntax "#3a273a"
minus-non-emph-style = syntax "#3a273a"
minus-emph-style = "#1b1d2b" "#c53b53"
minus-empty-line-marker-style = syntax "#3a273a"
plus-style = syntax "#273849"
plus-non-emph-style = syntax "#273849"
plus-emph-style = "#1b1d2b" "#41a6b5"
plus-empty-line-marker-style = syntax "#273849"

View File

@ -0,0 +1,9 @@
[delta]
minus-style = syntax "#37222c"
minus-non-emph-style = syntax "#37222c"
minus-emph-style = "#15161e" "#db4b4b"
minus-empty-line-marker-style = syntax "#37222c"
plus-style = syntax "#20303b"
plus-non-emph-style = syntax "#20303b"
plus-emph-style = "#15161e" "#41a6b5"
plus-empty-line-marker-style = syntax "#20303b"

View File

@ -0,0 +1,9 @@
[delta]
minus-style = syntax "#3f2d3d"
minus-non-emph-style = syntax "#3f2d3d"
minus-emph-style = "#1d202f" "#db4b4b"
minus-empty-line-marker-style = syntax "#3f2d3d"
plus-style = syntax "#283b4d"
plus-non-emph-style = syntax "#283b4d"
plus-emph-style = "#1d202f" "#41a6b5"
plus-empty-line-marker-style = syntax "#283b4d"

View File

@ -0,0 +1,24 @@
local util = require("tokyonight.util")
local M = {}
--- @param colors ColorScheme
function M.generate(colors)
local delta = util.template(
[[
[delta]
minus-style = syntax "${diff.delete}"
minus-non-emph-style = syntax "${diff.delete}"
minus-emph-style = "${black}" "${red1}"
minus-empty-line-marker-style = syntax "${diff.delete}"
plus-style = syntax "${diff.add}"
plus-non-emph-style = syntax "${diff.add}"
plus-emph-style = "${black}" "${green2}"
plus-empty-line-marker-style = syntax "${diff.add}"
]],
colors
)
return delta
end
return M

View File

@ -26,6 +26,7 @@ function M.setup()
iterm = "itermcolors",
lua = "lua",
sublime = "tmTheme",
delta = "gitconfig",
}
-- map of style to style name
local styles = {