Skip to content

Commit

Permalink
(neo)vim: topgrade should only invoke plugin managers not plugins (#341)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
vzze and s34m authored Jan 30, 2023
1 parent 828477b commit 9dcc8fd
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions src/steps/upgrade.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9dcc8fd

Please sign in to comment.