Skip to content
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

Glaive feature to trigger plugin activation #14

Open
dbarnett opened this issue Jan 22, 2014 · 3 comments
Open

Glaive feature to trigger plugin activation #14

dbarnett opened this issue Jan 22, 2014 · 3 comments

Comments

@dbarnett
Copy link
Contributor

It's a common pattern to install a plugin, configure it, install another plugin, configure it, etc. It would be nice to be able to consolidate this down to a single line by configuring :Glaive to hook into your plugin manager somehow so it knows how to trigger plugin activation.

The vim-pi project (vim plugin index, a spinoff of the vim-addon-manager project) maps canonical plugin names to an installation source. This means we can both install and configure the plugin using the same short canonical name. For VAM, it's as simple as telling :Glaive NAME to execute :ActivateAddons NAME if the plugin isn't yet activated. For other plugin managers, it might be more complicated, but should still be possible.

@chiphogg
Copy link
Contributor

chiphogg commented Jun 5, 2014

One caveat: if you're using the new Vundle interface, no autoload functions are available until after vundle#end() is called. I assume commands would be unavailable too.

@dbarnett
Copy link
Contributor Author

dbarnett commented Jun 5, 2014

That's weird… So they don't add them to rtp until you call vundle#end()? Do you have a link for details?

That's not necessarily a big deal for this FR, since it's the same basic issue whether you activate plugins explicitly or via a custom Glaive hook, but I think that behavior might break instant/ files on you if they trigger before vundle#end(). It would be good to know what works for Vundle and document it.

@chiphogg
Copy link
Contributor

I think this was added in VundleVim/Vundle.vim@c20c90d86761c8e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants