mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 18:16:26 +00:00
Fix lazy bootstrap script
This commit is contained in:
parent
928e7742cb
commit
b4dd7b4d87
@ -24,12 +24,10 @@ mkdir -p "${XDG_CONFIG_HOME:=$HOME/.config}"
|
||||
# Install all bundles
|
||||
echo "Install all bundles"
|
||||
if hash nvim 2>/dev/null; then
|
||||
# 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"
|
||||
# Sync packer plugins
|
||||
nvim --headless "+Lazy! sync" +qa
|
||||
# Bootstrap treesitter parsers
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user