summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-02-28 17:48:48 +0100
committerDaniel Weipert <code@drogueronin.de>2023-10-30 09:52:23 +0100
commitb13bb4e2d1f883ba7f84bfaa55ad36ef7110c998 (patch)
tree5d809bd6d1e96d2541d05693efa1bc974cb568b1 /.gitconfig
parent22c4a31a44efa93d02636a77817f6637d273007a (diff)
[nvim+git] add diffview
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig5
1 files changed, 4 insertions, 1 deletions
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