diff --git a/src/steps/upgrade.vim b/src/steps/upgrade.vim index 0c730366..455cbd10 100644 --- a/src/steps/upgrade.vim +++ b/src/steps/upgrade.vim @@ -35,27 +35,14 @@ endif if exists(":Lazy") echo "Lazy Update" - +Lazy! sync + autocmd User LazySync * quitall + Lazy sync endif -function! UpdateCoCAndTS() - if exists(":CocUpdateSync") - echo "CocUpdateSync" - CocUpdateSync - endif - - if exists(":TSUpdateSync") - echo "TreeSitter Update" - TSUpdate - endif - - quitall -endfunction - if exists(':PackerSync') echo "Packer" - autocmd User PackerComplete * call UpdateCoCAndTS() + autocmd User PackerComplete quitall PackerSync else - call UpdateCoCAndTS() + quitall endif