helm/editor/+neovim/install
2017-08-09 15:43:07 +02:00

21 lines
530 B
Bash
Executable file

#!/usr/bin/env bash
case $OSTYPE in
darwin*)
command -v nvim >/dev/null || brew install neovim
;;
linux*)
if [[ -f /etc/arch-release ]]; then
sudo pacman --needed --noconfirm -S make neovim python-neovim
elif [[ -f /etc/debian_version ]]; then
sudo apt-get install -y neovim python3-neovim
fi
;;
esac
if [[ ! -d "$HOME/.vim" ]]; then
git clone --recursive "https://github.com/hlissner/.vim" "$HOME/.vim"
cd "$HOME/.vim" && make install
fi