From d7709490ce8f8640ecae65ee4654cfd8391fc685 Mon Sep 17 00:00:00 2001 From: slowsage <84777606+slowsage@users.noreply.github.com> Date: Fri, 23 Jun 2023 05:01:55 -0400 Subject: [PATCH] fix: Run AstroUpdate before Lazy sync (#473) --- src/steps/upgrade.vim | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/steps/upgrade.vim b/src/steps/upgrade.vim index bbbf5134..c1c0dc34 100644 --- a/src/steps/upgrade.vim +++ b/src/steps/upgrade.vim @@ -1,3 +1,14 @@ +" AstroUpdate calls a plugin manager - Lazy as of this writing. So we check for it before +" others. Add to init.lua: +" updater = { +" skip_prompts = true, +" }, +if exists(":AstroUpdate") + echo "AstroUpdate" + AstroUpdate + quitall +endif + if exists(":NeoBundleUpdate") echo "NeoBundle" NeoBundleUpdate @@ -38,11 +49,6 @@ if exists(":Lazy") Lazy! sync | qa endif -if exists(":AstroUpdate") - echo "AstroUpdate" - AstroUpdate -endif - if exists(':PackerSync') echo "Packer" autocmd User PackerComplete quitall