From b13bb4e2d1f883ba7f84bfaa55ad36ef7110c998 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 28 Feb 2023 17:48:48 +0100 Subject: [nvim+git] add diffview --- .gitconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.gitconfig') diff --git a/.gitconfig b/.gitconfig index 92ff9cf..bb20980 100644 --- a/.gitconfig +++ b/.gitconfig @@ -10,7 +10,10 @@ [difftool] prompt = false [difftool "nvimdiff"] - cmd = "nvim -d \"$LOCAL\" \"$REMOTE\"" + cmd = "nvim -Rd \"$LOCAL\" \"$REMOTE\"" + +[alias] + ndiff = "!nvim -Rc 'DiffviewOpen'" [core] excludesfile = ~/.config/git/ignore -- cgit v1.2.3