-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies between lazy loaded plugins #145
Comments
Hmm right, they shouldn't work. At the moment, you can define a proxy command yourself which calls Plug 'ctrlpvim/ctrlp.vim', { 'on': 'CtrlP' }
Plug 'tacahiroy/ctrlp-funky', { 'on': [] }
command! CtrlPFunky call plug#load('ctrlp.vim', 'ctrlp-funky') | CtrlPFunky |
@barthalion Updated vim-plug to handle such cases. Please upgrade vim-plug and let me know if it doesn't work as expected. Thanks! |
Thank you, works like a charm. |
@junegunn What is the order between the plugins loaded by Because in some cases, it's mandatory that the dependency gets loaded before the dependant. For example with: Plug 'ctrlpvim/ctrlp.vim', { 'on': [ 'CtrlP', 'CtrlPFunky' ] },
Plug 'tacahiroy/ctrlp-funky', { 'on': 'CtrlPFunky' } The |
@alem0lars Yes. |
I want to lazy load CtrlP and its external plugin Funky. I expected the following snippet to load both CtrlP and Funky when
:CtrlPFunky
is called:Unfortunately it results in:
It also happens with Airline and plugins it supports. Is there anything that can be done about it?
The text was updated successfully, but these errors were encountered: