Prepare for nvim
This commit is contained in:
		
							parent
							
								
									807818911d
								
							
						
					
					
						commit
						65f913310a
					
				
					 4 changed files with 16 additions and 4 deletions
				
			
		|  | @ -5,8 +5,9 @@ _autoinstall_base () { | |||
| 		"$HOME/.config/vim/autoload/plug.vim" \ | ||||
| 		&& [ -x "$(command -v vim)" ] && yes | vim +'PlugInstall --sync' +qa --not-a-term | ||||
| 
 | ||||
| 	#_autoinstall_git "https://github.com/AstroNvim/AstroNvim" "$HOME/.config/nvim" \ | ||||
| 	#	&& [ -x "$(command -v nvim)" ] && nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' | ||||
| 	_autoinstall_git "https://github.com/wbthomason/packer.nvim" \ | ||||
| 		"$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" \ | ||||
| 		&& [ -x "$(command -v nvim)" ] && nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' | ||||
| 
 | ||||
| 	[ ! -x "$(command -v starship)" ] \ | ||||
| 		&& curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh | ||||
|  | @ -67,7 +68,7 @@ _autoinstall_git () { | |||
| 	then | ||||
| 		echo "Installing repo $1 to $2" | ||||
| 		mkdir -p "$2" | ||||
| 		git clone "$1" "$2" >/dev/null 2>&1 | ||||
| 		git clone --depth=1 "$1" "$2" >/dev/null 2>&1 | ||||
| 		return 0 | ||||
| 	fi | ||||
| 	return 1 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue