From b4dd7b4d87d5091c17b969ef8157877eeb71b95a Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 17 Sep 2024 12:58:06 -0700 Subject: [PATCH] Fix lazy bootstrap script --- vim-sync-append.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/vim-sync-append.sh b/vim-sync-append.sh index fb6d326..538a2ce 100755 --- a/vim-sync-append.sh +++ b/vim-sync-append.sh @@ -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