cleanup vim plug

This commit is contained in:
cupcakearmy 2022-11-09 13:22:32 +01:00
parent d8b137e382
commit 5155fd8845
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F

13
install
View File

@ -38,7 +38,14 @@ if [[ $platform == "Darwin" ]]; then
brew bundle --file ./files/Brewfile brew bundle --file ./files/Brewfile
fi fi
# NeoVim & Vim Plugins https://github.com/junegunn/vim-plug # NeoVim & Vim Plugins https://github.com/junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim for dir in "$HOME/.vim/autoload/plug.vim" "${XDG_DATA_HOME:-$HOME/.local/share}/nvim/site/autoload/plug.vim"
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' do
if [[ ! -f $dir ]]
then
echo "Installing Plug to: $dir"
curl -fLo "$dir" --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
else
echo "Plug already installed at: $dir"
fi
done