]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Use nvim for mergetool
authorRuben Beltran del Rio <redacted>
Thu, 21 Sep 2023 20:22:57 +0000 (22:22 +0200)
committerRuben Beltran del Rio <redacted>
Thu, 21 Sep 2023 20:22:57 +0000 (22:22 +0200)
gitconfig

index cc14fe3b6d2e82c57e20e8f2acfadf4763b296d6..f3cb18daacf448df468df76763858ff8b3ae8b52 100644 (file)
--- a/gitconfig
+++ b/gitconfig
        defaultBranch = main
 [diff]
   external = difft
+       tool = vimdiff
+[merge]
+  tool = nvim
+[mergetool]
+  keepBackup = false
+[mergetool "nvim"]
+  cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'