Fix nvim installation

This commit is contained in:
Augusto Gunsch 2021-08-24 12:52:57 -03:00
parent 8c6c006898
commit a25ec77a45
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 4 additions and 2 deletions

View File

@ -490,12 +490,14 @@ repos() {
# pwd must be the home dir of the user # pwd must be the home dir of the user
configure_nvim_for() { configure_nvim_for() {
echo -n "Downloading vim-plug for $1..." echo -n "Downloading vim-plug for $1..."
quiet sudo -u "$1" curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ quiet sudo -u "$1" curl -fsLo .local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "done" echo "done"
echo -n "Installing neovim plugins for $1..." echo -n "Installing neovim plugins for $1..."
quiet sudo -u "$1" nvim -E -c PlugInstall -c qall set +e
ultra_quiet sudo -u "$1" nvim -E -c PlugInstall -c qall
set -e
echo "done" echo "done"
} }