2020-02-14 15:18:48 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-02-14 15:25:22 +00:00
|
|
|
# Create nvim config directory if it doesn't exist
|
|
|
|
if [ ! -d ~/.config/nvim ]; then
|
|
|
|
echo "Creating ~/.config/nvim"
|
|
|
|
mkdir -p ~/.config/nvim
|
|
|
|
fi
|
|
|
|
|
2020-02-14 15:18:48 +00:00
|
|
|
for d in $(ls -d */ | cut -f1 -d '/'); do
|
|
|
|
(stow $d)
|
|
|
|
done
|
|
|
|
|
|
|
|
# Install vim plugins & requirements
|
|
|
|
if [ ! "$(pip list --user | grep 'pynvim' | wc -l)" -ge 1 ]; then
|
|
|
|
pip install --user pynvim
|
|
|
|
fi
|
|
|
|
|
2020-02-14 15:25:22 +00:00
|
|
|
# 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
|
2020-02-14 15:18:48 +00:00
|
|
|
fi
|
2020-02-14 15:25:22 +00:00
|
|
|
|
|
|
|
# Install nvim pluugins
|
|
|
|
nvim +PlugInstall +qall
|