mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 17:17:36 +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
|
.PHONY: uninstall
|
||||||
uninstall:
|
uninstall:
|
||||||
rm ~/.vimrc
|
rm ~/.vimrc
|
||||||
rm ~/.nvimrc
|
|
||||||
rm -fr ~/.vim
|
rm -fr ~/.vim
|
||||||
rm -fr ~/.nvim
|
|
||||||
rm -fr ~/.config/nvim
|
rm -fr ~/.config/nvim
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -fr ./vim/plugged
|
# Clean vim-plug
|
||||||
rm -fr ./vim/autoload/plug.vim
|
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
|
# Installs pre-commit hooks
|
||||||
$(PRE_COMMIT_ENV):
|
$(PRE_COMMIT_ENV):
|
||||||
|
@ -24,14 +24,15 @@ mkdir -p "${XDG_CONFIG_HOME:=$HOME/.config}"
|
|||||||
# Install all bundles
|
# Install all bundles
|
||||||
echo "Install all bundles"
|
echo "Install all bundles"
|
||||||
if hash nvim 2>/dev/null; then
|
if hash nvim 2>/dev/null; then
|
||||||
echo "If using Neovim, install the python modules in your environment"
|
# Install plugins for old Neovim (<0.5)
|
||||||
nvim --headless -c PlugInstall -c qall
|
nvim --headless -c PlugInstall -c qall
|
||||||
nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerBootstrap" -c "PackerSync"
|
# Install plugins for new Neovim (>0.5)
|
||||||
nvim --headless -c "lua require('plugins.treesitter').bootstrap()" -c quitall
|
nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerBootstrap" -c "PackerSync"
|
||||||
nvim --headless -c "TSUpdateSync" -c "quitall"
|
nvim --headless -c "lua require('plugins.treesitter').bootstrap()" -c quitall
|
||||||
|
nvim --headless -c "TSUpdateSync" -c "quitall"
|
||||||
fi
|
fi
|
||||||
if hash vim 2>/dev/null; then
|
if hash vim 2>/dev/null; then
|
||||||
vim +PlugInstall +qall
|
vim +PlugInstall +qall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user