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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user