From 9dcc8fdd0d3060211dfa41e26a7d195884cbc8d7 Mon Sep 17 00:00:00 2001 From: edi <74437706+vzze@users.noreply.github.com> Date: Mon, 30 Jan 2023 20:42:13 +0200 Subject: [PATCH] (neo)vim: topgrade should only invoke plugin managers not plugins (#341) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- src/steps/upgrade.vim | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/steps/upgrade.vim b/src/steps/upgrade.vim index 0c730366..455cbd10 100644 --- a/src/steps/upgrade.vim +++ b/src/steps/upgrade.vim @@ -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