mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 17:37:34 +00:00
Clean up install and uninstall
This commit is contained in:
parent
0cb37ef1dc
commit
ec6601ff2a
10
Makefile
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):
|
||||
|
@ -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…
Reference in New Issue
Block a user