From a25ec77a45ab9e97b0fe20022eb13c1c50eeb8e4 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Tue, 24 Aug 2021 12:52:57 -0300 Subject: [PATCH] Fix nvim installation --- post-install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/post-install.sh b/post-install.sh index e431038..353312e 100755 --- a/post-install.sh +++ b/post-install.sh @@ -490,12 +490,14 @@ repos() { # pwd must be the home dir of the user configure_nvim_for() { 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 echo "done" 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" }