From fbc4fb24b98445dcc3eefe5381957107ec35e2d7 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Sat, 13 Nov 2021 13:31:02 -0300 Subject: [PATCH] Add neovim plugin config --- post-install.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/post-install.sh b/post-install.sh index d3680d3..055a162 100755 --- a/post-install.sh +++ b/post-install.sh @@ -32,6 +32,7 @@ cd "$(dirname "$0")" ### URLs ### DOTFILES="https://github.com/augustogunsch/dotfiles" +DOTFILES="https://github.com/augustogunsch/vim-plugin-config" PACKAGES_URL="https://raw.githubusercontent.com/augustogunsch/install-arch/master/packages.csv" ### COLORS ### @@ -508,16 +509,26 @@ configure_nvim_for() { ultra_quiet sudo -u "$1" nvim -E -c PlugInstall -c qall set -e echo "done" + + echo -n "Downloading neovim plugins configuration (~/.vim-plugin-config)..." + quiet sudo -u "$1" git clone "$VIM_PLUGIN_CFG" ./.vim-plugin-config + echo "done" + + echo -n "Linking neovim plugins configuration..." + qpushd ./.vim-plugin-config + quiet sudo -u "$1" ./install.sh + echo "done" + qpopd } # pwd must be the home dir of the user install_dotfiles_for() { - echo -n "Downloading dotfiles for $1 (~/dotfiles)..." - quiet sudo -u "$1" git clone "$DOTFILES" ./dotfiles + echo -n "Downloading dotfiles for $1 (~/.dotfiles)..." + quiet sudo -u "$1" git clone "$DOTFILES" ./.dotfiles echo "done" echo -n "Linking dotfiles..." - qpushd "./dotfiles" + qpushd ./.dotfiles quiet sudo -u "$1" ./install.sh echo "done" qpopd