mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 18:07:34 +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
|
# 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
|
||||||
# Install plugins for old Neovim (<0.5)
|
# Sync packer plugins
|
||||||
nvim --headless -c PlugInstall -c qall
|
nvim --headless "+Lazy! sync" +qa
|
||||||
# Install plugins for new Neovim (>0.5)
|
# Bootstrap treesitter parsers
|
||||||
nvim --headless -c "autocmd User PackerComplete quitall" -c "PackerBootstrap" -c "PackerSync"
|
|
||||||
nvim --headless -c "lua require('plugins.treesitter').bootstrap()" -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
|
||||||
|
Loading…
Reference in New Issue
Block a user