feat: added extra styles for delta. Use in combination with bat styles
This commit is contained in:
parent
053562c9dc
commit
6bd44c946c
9
extras/delta/tokyonight_day.gitconfig
Normal file
9
extras/delta/tokyonight_day.gitconfig
Normal 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"
|
9
extras/delta/tokyonight_moon.gitconfig
Normal file
9
extras/delta/tokyonight_moon.gitconfig
Normal 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"
|
9
extras/delta/tokyonight_night.gitconfig
Normal file
9
extras/delta/tokyonight_night.gitconfig
Normal 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"
|
9
extras/delta/tokyonight_storm.gitconfig
Normal file
9
extras/delta/tokyonight_storm.gitconfig
Normal 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"
|
24
lua/tokyonight/extra/delta.lua
Normal file
24
lua/tokyonight/extra/delta.lua
Normal 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
|
@ -26,6 +26,7 @@ function M.setup()
|
|||||||
iterm = "itermcolors",
|
iterm = "itermcolors",
|
||||||
lua = "lua",
|
lua = "lua",
|
||||||
sublime = "tmTheme",
|
sublime = "tmTheme",
|
||||||
|
delta = "gitconfig",
|
||||||
}
|
}
|
||||||
-- map of style to style name
|
-- map of style to style name
|
||||||
local styles = {
|
local styles = {
|
||||||
|
Loading…
Reference in New Issue
Block a user