Browse Source

Clean up install and uninstall

master
ViViDboarder 4 months ago
parent
commit
ec6601ff2a
  1. 10
      Makefile
  2. 13
      vim-sync-append.sh

10
Makefile

@ -20,15 +20,17 @@ install-language-servers:
.PHONY: uninstall
uninstall:
rm ~/.vimrc
rm ~/.nvimrc
rm -fr ~/.vim
rm -fr ~/.nvim
rm -fr ~/.config/nvim
.PHONY: clean
clean:
rm -fr ./vim/plugged
rm -fr ./vim/autoload/plug.vim
# Clean vim-plug
rm -fr ./vim/plugged ./vim/autoload/plug.vim
# Clean LspInstall
rm -fr ~/.local/share/nvim/lsp_servers
# Clean Packer
rm -fr ~/.local/share/nvim/site/pack/packer
# Installs pre-commit hooks
$(PRE_COMMIT_ENV):

13
vim-sync-append.sh

@ -24,14 +24,15 @@ mkdir -p "${XDG_CONFIG_HOME:=$HOME/.config}"
# Install all bundles
echo "Install all bundles"
if hash nvim 2>/dev/null; then
echo "If using Neovim, install the python modules in your environment"
nvim --headless -c PlugInstall -c qall
nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerBootstrap" -c "PackerSync"
nvim --headless -c "lua require('plugins.treesitter').bootstrap()" -c quitall
nvim --headless -c "TSUpdateSync" -c "quitall"
# Install plugins for old Neovim (<0.5)
nvim --headless -c PlugInstall -c qall
# Install plugins for new Neovim (>0.5)
nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerBootstrap" -c "PackerSync"
nvim --headless -c "lua require('plugins.treesitter').bootstrap()" -c quitall
nvim --headless -c "TSUpdateSync" -c "quitall"
fi
if hash vim 2>/dev/null; then
vim +PlugInstall +qall
vim +PlugInstall +qall
fi

Loading…
Cancel
Save