(neo)vim: topgrade should only invoke plugin managers not plugins (#341)

* fix upgrade order of (n)vim plugins

* treesitter should use the synchronous cmd

* add lazy pkg manager for neovim

* fix lazy cmd

* change calls

* add autocmd, remove ts and coc

* fix vimscript err invalid range

---------

Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
This commit is contained in:
edi
2023-01-30 20:42:13 +02:00
committed by GitHub
parent 828477b255
commit 9dcc8fdd0d

View File

@@ -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