add delta as git diff tool

This commit is contained in:
MorganGeek 2020-07-08 14:41:14 +02:00
parent 0b1a075290
commit bf49e35393
2 changed files with 11 additions and 3 deletions

View File

@ -196,3 +196,4 @@ brew "wtfutil"
brew "tfenv" brew "tfenv"
brew "tokei" brew "tokei"
brew "fd" brew "fd"
brew "git-delta"

View File

@ -73,8 +73,7 @@
templateDir = /Users/morganwattiez/.git-template templateDir = /Users/morganwattiez/.git-template
[core] [core]
pager = diff-so-fancy | less --tabs=4 -RFX pager = delta --line-numbers --diff-highlight
# Treat spaces before tabs and all kinds of trailing whitespace as an error. # Treat spaces before tabs and all kinds of trailing whitespace as an error.
# [default] trailing-space: looks for spaces at the end of a line # [default] trailing-space: looks for spaces at the end of a line
# [default] space-before-tab: looks for spaces before tabs at the beginning of a line # [default] space-before-tab: looks for spaces before tabs at the beginning of a line
@ -99,4 +98,12 @@
insteadOf = https://github.com/ insteadOf = https://github.com/
[difftool] [difftool]
prompt = false prompt = false
[delta]
plus-color = "#012800"
minus-color = "#340001"
theme = Monokai Extended
[interactive]
diffFilter = delta --color-only