Use nvim as diff and merge tool

This commit is contained in:
Michael Mandl 2020-05-24 12:57:45 +02:00
parent c38ec860ff
commit 29f6d2e835

View File

@ -20,8 +20,13 @@
whitespace = red reverse
[mergetool]
keepBackup = false
prompt = false
[diff]
tool = vimdiff
[difftool "vimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[difftool]
prompt = false
[gitflow]
multi-hotfix = true
[gitflow "branch"]
@ -39,6 +44,8 @@
[format]
pretty = format:%C(yellow)%h %Cblue%>(12)%ad %Cgreen%<(7,trunc)%aN%Cred%d %Creset%s
[mergetool "nvim"]
cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
[rerere]
enabled = true
[fetch]