feat: added extra styles for delta. Use in combination with bat styles
This commit is contained in:
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",
|
||||
lua = "lua",
|
||||
sublime = "tmTheme",
|
||||
delta = "gitconfig",
|
||||
}
|
||||
-- map of style to style name
|
||||
local styles = {
|
||||
|
||||
Reference in New Issue
Block a user