aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-12-27 10:17:41 +0800
committerGuangxiong Lin <[email protected]>2023-12-27 10:17:41 +0800
commitad26b3e30e9bc321dd62eaeddb1672acb4886dd3 (patch)
tree3ba713a7e7555455094a82e98b4403938d6386f9
parent24324723a0916a4ff9b2842a6134915f1d38db7e (diff)
downloaddotfiles-ad26b3e30e9bc321dd62eaeddb1672acb4886dd3.tar.gz
dotfiles-ad26b3e30e9bc321dd62eaeddb1672acb4886dd3.tar.bz2
dotfiles-ad26b3e30e9bc321dd62eaeddb1672acb4886dd3.zip
Add nvim diffview
-rw-r--r--.gitmodules3
-rw-r--r--.vim/after/plugin/nvim-diffview.vim5
m---------.vim/pack/nvim/opt/diffview.nvim0
-rw-r--r--README.md3
4 files changed, 11 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index d26b45d..889677d 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -55,3 +55,6 @@
[submodule ".vim/pack/nvim/opt/cmp-omni"]
path = .vim/pack/nvim/opt/cmp-omni
url = https://github.com/hrsh7th/cmp-omni
+[submodule ".vim/pack/nvim/opt/diffview.nvim"]
+ path = .vim/pack/nvim/opt/diffview.nvim
+ url = https://github.com/sindrets/diffview.nvim
diff --git a/.vim/after/plugin/nvim-diffview.vim b/.vim/after/plugin/nvim-diffview.vim
new file mode 100644
index 0000000..f1f9783
--- /dev/null
+++ b/.vim/after/plugin/nvim-diffview.vim
@@ -0,0 +1,5 @@
+if !has('nvim')
+ finish
+endif
+
+packadd diffview.nvim
diff --git a/.vim/pack/nvim/opt/diffview.nvim b/.vim/pack/nvim/opt/diffview.nvim
new file mode 160000
+Subproject 3dc498c9777fe79156f3d32dddd483b8b3dbd95
diff --git a/README.md b/README.md
index 4195e69..57269c6 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,9 @@ Editing:
Interface:
+- [diffview.nvim](https://github.com/sindrets/diffview.nvim): Help to
+ diff file changes.
+
Misc:
- [vim-highlightedyank](https://github.com/machakann/vim-highlightedyank):