diff --git a/home/.config/git/config b/home/.config/git/config index d3b78fb..3f4d7fe 100644 --- a/home/.config/git/config +++ b/home/.config/git/config @@ -30,15 +30,6 @@ prompt = false [mergetool "nvim"] cmd = nvim +DiffviewOpen -[diff] -tool = nvim - -[difftool] -prompt = false - -[difftool "nvim"] -cmd = nvim +DiffviewOpen - [pull] rebase = merges diff --git a/home/.config/zsh/04-aliases.zsh b/home/.config/zsh/04-aliases.zsh index d9ea72e..c93efc6 100644 --- a/home/.config/zsh/04-aliases.zsh +++ b/home/.config/zsh/04-aliases.zsh @@ -10,6 +10,11 @@ alias gs='git status' alias gpull='git pull' alias gpush='git push' +# Open nvim with diffview +# Handy plugin for viewing git diffs +# and handling merges +alias diffview='nvim +DiffviewOpen' + # Rename grc alias from forgit since it # collides with the grc colorizer forgit_revert_commit=fgrc