diff --git a/.config/git/config b/.config/git/config index 267e6da..0cc0a01 100644 --- a/.config/git/config +++ b/.config/git/config @@ -13,7 +13,9 @@ helper = cache --timeout=604800 [diff] - tool = vimdiff + tool = nvimdiff +[difftool "nvimdiff"] + cmd = "nvim -d \"$LOCAL\" \"$REMOTE\"" [http] postBuffer = 524288000 @@ -25,8 +27,16 @@ [init] defaultBranch = main [merge] + tool = "nvim" conflictstyle = diff3 +[mergetool] + keepBackup = false + prompt = true + +[mergetool "nvim"] + cmd = "nvim -d -c \"wincmd l\" -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"" + # Set a correct user.name and user.email for work projects [includeIf "gitdir:~/git/work/"] path = ~/git/work/gitconfig