fix upgrade order of (n)vim plugins (#322)

* fix upgrade order of (n)vim plugins

* treesitter should use the synchronous cmd

---------

Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
This commit is contained in:
edi
2023-01-27 23:41:48 +02:00
committed by GitHub
parent 45d935eda3
commit 4abbee99cc

View File

@@ -33,23 +33,24 @@ if exists(":PaqUpdate")
PaqUpdate
endif
if exists(":CocUpdateSync")
echo "CocUpdateSync"
CocUpdateSync
endif
function! UpdateCoCAndTS()
if exists(":CocUpdateSync")
echo "CocUpdateSync"
CocUpdateSync
endif
" TODO: Should this be after `PackerSync`?
" Not sure how to sequence this after Packer without doing something weird
" with that `PackerComplete` autocommand.
if exists(":TSUpdate")
echo "TreeSitter Update"
TSUpdate
endif
if exists(":TSUpdateSync")
echo "TreeSitter Update"
TSUpdate
endif
quitall
endfunction
if exists(':PackerSync')
echo "Packer"
autocmd User PackerComplete quitall
PackerSync
echo "Packer"
autocmd User PackerComplete * call UpdateCoCAndTS()
PackerSync
else
quitall
call UpdateCoCAndTS()
endif