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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user