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
|
PaqUpdate
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists(":CocUpdateSync")
|
function! UpdateCoCAndTS()
|
||||||
|
if exists(":CocUpdateSync")
|
||||||
echo "CocUpdateSync"
|
echo "CocUpdateSync"
|
||||||
CocUpdateSync
|
CocUpdateSync
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" TODO: Should this be after `PackerSync`?
|
if exists(":TSUpdateSync")
|
||||||
" Not sure how to sequence this after Packer without doing something weird
|
|
||||||
" with that `PackerComplete` autocommand.
|
|
||||||
if exists(":TSUpdate")
|
|
||||||
echo "TreeSitter Update"
|
echo "TreeSitter Update"
|
||||||
TSUpdate
|
TSUpdate
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
quitall
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user