Fix package load init order bugs

* Move calls to `minpac#init()` into commands which use minpac
* Check if optional package directories exist before using `packadd`
This commit is contained in:
2020-11-28 17:16:11 +00:00
parent 3cc1e3d2d8
commit e4a11a2ffe
2 changed files with 6 additions and 7 deletions

View File

@@ -1,10 +1,10 @@
" minpac
command! PackUpdate packadd minpac | source $MYVIMRC |
\ call minpac#update('', {'do': 'call minpac#status()'})
\ call minpac#init() | call minpac#update('', {'do': 'call minpac#status()'})
command! PackStatus packadd minpac | source $MYVIMRC |
\ call minpac#status()
\ call minpac#init() | call minpac#status()
command! PackClean packadd minpac | source $MYVIMRC |
\ call minpac#clean()
\ call minpac#init() | call minpac#clean()
" Sort Python Imports
command! ISort call do#isort()