35 lines
		
	
	
		
			671 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			671 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/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 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 "$@"
 |