Skip to content

Instantly share code, notes, and snippets.

@CarolHsu
Last active February 24, 2022 21:41
Show Gist options
  • Select an option

  • Save CarolHsu/50f67c078b30e33717deb5aea46344a0 to your computer and use it in GitHub Desktop.

Select an option

Save CarolHsu/50f67c078b30e33717deb5aea46344a0 to your computer and use it in GitHub Desktop.
Neovim as git diff and merge tool
[diff]
tool = nvimdiff
[difftool]
prompt = true
[difftool "nvimdiff"]
cmd = nvim -d $LOCAL $REMOTE
[merge]
tool = nvimdiff
[mergetool]
keepBackup = false
[mergetool "nvimdiff"]
cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment