mirror of
https://github.com/alrayyes/server-dotfiles
synced 2023-11-14 15:56:25 +00:00
make sure to install zplug
This commit is contained in:
parent
f93d4fa3ef
commit
f27cbc7872
18
install
18
install
@ -1,5 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
for d in $(ls -d */ | cut -f1 -d '/'); do
|
||||||
(stow $d)
|
(stow $d)
|
||||||
done
|
done
|
||||||
@ -8,10 +14,12 @@ done
|
|||||||
if [ ! "$(pip list --user | grep 'pynvim' | wc -l)" -ge 1 ]; then
|
if [ ! "$(pip list --user | grep 'pynvim' | wc -l)" -ge 1 ]; then
|
||||||
pip install --user pynvim
|
pip install --user pynvim
|
||||||
fi
|
fi
|
||||||
nvim +PlugInstall +qall
|
|
||||||
|
|
||||||
# Create nvim config directory if it doesn't exist
|
# Install zplug if it doesn't exist yet
|
||||||
if [ ! -d ~/.config/nvim ]; then
|
if [ ! -d ~/.zplug ]; then
|
||||||
echo "Creating ~/.config/nvim"
|
echo "Installing zplug"
|
||||||
mkdir -p ~/.config/nvim
|
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install nvim pluugins
|
||||||
|
nvim +PlugInstall +qall
|
||||||
|
Loading…
Reference in New Issue
Block a user