From 7161260248ea99dd625481d52d6dbbf99c02b73d Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 16 Jan 2024 19:45:33 -0800 Subject: [PATCH] (n)vimdiff --- .gitconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitconfig b/.gitconfig index 0f7cae7..a16307e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -47,6 +47,10 @@ conflictstyle = diff3 ff = false tool = vimdiff +[mergetool "vimdiff"] + path = nvim +[mergetool "nvimdiff"] + cmd = nvim -d \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\" [mergetool "sourcetree"] cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" trustExitCode = true