summaryrefslogtreecommitdiff
path: root/.config/nvim/plugins/diffview.vim
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/plugins/diffview.vim')
-rw-r--r--.config/nvim/plugins/diffview.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/plugins/diffview.vim b/.config/nvim/plugins/diffview.vim
new file mode 100644
index 0000000..4b9d2f0
--- /dev/null
+++ b/.config/nvim/plugins/diffview.vim
@@ -0,0 +1,6 @@
+lua <<EOF
+require('diffview').setup({})
+EOF
+
+" close all windows when Diffview is closed
+autocmd QuitPre * if &filetype == 'DiffviewFiles' | quitall | endif