git: use delta for diffs

This commit is contained in:
teutat3s 2024-05-27 10:57:59 +02:00
parent f45c7c2f50
commit 0b3a2f2954
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
2 changed files with 19 additions and 0 deletions

View file

@ -31,6 +31,7 @@ in {
asciinema asciinema
bat bat
blesh blesh
delta
eza eza
fd fd
jump jump

View file

@ -17,7 +17,25 @@ in
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
line-numbers = true
syntax-theme = base16
minus-style = "red dim"
plus-style = "green dim"
zero-style = "white dim"
# delta detects terminal colors automatically; set one of these to disable auto-detection
# dark = true
# light = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[includeIf "gitdir:~/CodeRoom/greenbaum.cloud/"] [includeIf "gitdir:~/CodeRoom/greenbaum.cloud/"]
path = ~/.config/git/config_greenbaum.cloud path = ~/.config/git/config_greenbaum.cloud