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 PaqUpdate
endif endif
if exists(":CocUpdateSync") function! UpdateCoCAndTS()
echo "CocUpdateSync" if exists(":CocUpdateSync")
CocUpdateSync echo "CocUpdateSync"
endif CocUpdateSync
endif
" TODO: Should this be after `PackerSync`? if exists(":TSUpdateSync")
" Not sure how to sequence this after Packer without doing something weird echo "TreeSitter Update"
" with that `PackerComplete` autocommand. TSUpdate
if exists(":TSUpdate") endif
echo "TreeSitter Update"
TSUpdate quitall
endif endfunction
if exists(':PackerSync') if exists(':PackerSync')
echo "Packer" echo "Packer"
autocmd User PackerComplete quitall autocmd User PackerComplete * call UpdateCoCAndTS()
PackerSync PackerSync
else else
quitall call UpdateCoCAndTS()
endif endif