Use delta as git diff pager

This commit is contained in:
2022-09-04 07:16:17 +02:00
parent bff17eb884
commit b37187f79e
4 changed files with 26 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
signingkey = 9893DA236405AF57
[core]
excludesfile = /home/coolneng/.config/git/global_gitignore
pager = delta
[credential]
helper = !pass-git-helper $@
[commit]
@@ -17,3 +18,17 @@
[filter "git-ignore-line.sh"]
clean = git-ignore-line.sh
smudge = cat
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false # required for git 2.37.0
[delta]
navigate = true # use n and N to move between diff sections
# GITIGNORE START
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
syntax-theme = Nord
# GITIGNORE END
[merge]
conflictstyle = diff3
[diff]
colorMoved = default