liuchengxu / space-vim

:four_leaf_clover: Lean & mean spacemacs-ish Vim distribution
https://liuchengxu.github.io/space-vim/
MIT License
2.85k stars 255 forks source link

Fix vim-plug post-update screen clutter #494

Closed rene-descartes2021 closed 2 years ago

rene-descartes2021 commented 2 years ago

More instances of the problem fixed,

rene-descartes2021 commented 2 years ago

Apologies, the earlier revision had bugs in that the global functions were not accessible in each packages.vim as it was defined beneath. I presumed those would work as it did in the lsp layer, but the lsp layer is different with the call s:{g:spacevim_lsp_engine}() at the bottom so it worked there.

So I moved the logic in those global functions into core/autoload/spacevim.vim spacevim#VimPlugPostUpdateHook(make, cmd, info). Cleaner this way.

I tested fzf and LanguageClient_neovim. I didn't test YouCompleteMe and deoplete, but I presume they'll work following the same pattern.