helm/editor/neovim/_init

35 lines
671 B
Plaintext
Raw Normal View History

#!/usr/bin/env zsh
source ${0:A:h}/../../deploy
NVIM_INSTALL_DIR="$XDG_CONFIG_HOME/nvim"
install() {
case $(_os) in
macos) _is_callable nvim || brew install neovim ;;
arch) pacaur --needed --noconfirm --noedit -S make neovim python-neovim ;;
2017-12-31 22:57:24 -08:00
debian)
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get install -y neovim
;;
esac
_ensure_repo hlissner/.vim $NVIM_INSTALL_DIR && \
cd $NVIM_INSTALL_DIR && \
make install
}
update() {
cd $NVIM_INSTALL_DIR && make update
}
link() {
mklink $NVIM_INSTALL_DIR $XDG_CONFIG_HOME/vim
}
clean() {
rm -fv $NVIM_INSTALL_DIR
rm -fv $XDG_CONFIG_HOME/vim
}
init "$@"