From 090e34ed00b0a5bb0ad71d3c9d17a799e347dbfd Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 27 Jan 2025 02:49:41 +0800 Subject: [PATCH] feat: use nvim if it exists. --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8595920..93898d1 100755 --- a/install.sh +++ b/install.sh @@ -56,7 +56,12 @@ ln -fs ../.vim ~/.config/nvim mkdir -p ~/.vim/ || true rsync -a ${BASEDIR}/.vim/ ~/.vim/ chmod 700 ~/.vim/ -vim +PlugUpdate +PlugClean\! +q +q + +if command -v nvim > /dev/null; then + nvim +PlugUpdate +PlugClean\! +q +q +else + vim +PlugUpdate +PlugClean\! +q +q +fi # diff -ruN --color .bashrc.local ~/.bashrc.local diff -ruN --color .zshrc.local ~/.zshrc.local