Add neovim plugin config

This commit is contained in:
Augusto Gunsch 2021-11-13 13:31:02 -03:00
parent 757039302b
commit fbc4fb24b9
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 14 additions and 3 deletions

View File

@ -32,6 +32,7 @@ cd "$(dirname "$0")"
### URLs ### ### URLs ###
DOTFILES="https://github.com/augustogunsch/dotfiles" 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" PACKAGES_URL="https://raw.githubusercontent.com/augustogunsch/install-arch/master/packages.csv"
### COLORS ### ### COLORS ###
@ -508,16 +509,26 @@ configure_nvim_for() {
ultra_quiet sudo -u "$1" nvim -E -c PlugInstall -c qall ultra_quiet sudo -u "$1" nvim -E -c PlugInstall -c qall
set -e set -e
echo "done" 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 # pwd must be the home dir of the user
install_dotfiles_for() { install_dotfiles_for() {
echo -n "Downloading dotfiles for $1 (~/dotfiles)..." echo -n "Downloading dotfiles for $1 (~/.dotfiles)..."
quiet sudo -u "$1" git clone "$DOTFILES" ./dotfiles quiet sudo -u "$1" git clone "$DOTFILES" ./.dotfiles
echo "done" echo "done"
echo -n "Linking dotfiles..." echo -n "Linking dotfiles..."
qpushd "./dotfiles" qpushd ./.dotfiles
quiet sudo -u "$1" ./install.sh quiet sudo -u "$1" ./install.sh
echo "done" echo "done"
qpopd qpopd