#!/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 ;; debian) sudo apt-get install -y neovim python3-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 "$@"