Sunday, February 17, 2019

Re: Feature/plugin dependency checks in plugins

> for the version (and if so how)

Many plugins define a variable that holds the plugin version

let g:loaded_FOO = 100

in plugin/FOO.vim.

> There is also the concern that if
> you are using a plugin manager some other plugin which you depend
> on may not be loaded yet even though it eventually will be.

Do you really have to check for that dependency in the file under the plugin directory? IMHO it's often sufficient to check dependencies in an autoload file which also solves this problem.

Regards

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: