From f27cbc78722720056f49f34159601064d536168e Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Fri, 14 Feb 2020 16:25:22 +0100 Subject: [PATCH] make sure to install zplug --- install | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/install b/install index 9ac23e6..92311aa 100755 --- a/install +++ b/install @@ -1,5 +1,11 @@ #!/usr/bin/env bash +# Create nvim config directory if it doesn't exist +if [ ! -d ~/.config/nvim ]; then + echo "Creating ~/.config/nvim" + mkdir -p ~/.config/nvim +fi + for d in $(ls -d */ | cut -f1 -d '/'); do (stow $d) done @@ -8,10 +14,12 @@ done if [ ! "$(pip list --user | grep 'pynvim' | wc -l)" -ge 1 ]; then pip install --user pynvim fi -nvim +PlugInstall +qall -# Create nvim config directory if it doesn't exist -if [ ! -d ~/.config/nvim ]; then - echo "Creating ~/.config/nvim" - mkdir -p ~/.config/nvim +# Install zplug if it doesn't exist yet +if [ ! -d ~/.zplug ]; then + echo "Installing zplug" + curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh fi + +# Install nvim pluugins +nvim +PlugInstall +qall