Saturday, February 16, 2019

Feature/plugin dependency checks in plugins

What is the best practice when a plugin needs a minimum version of
Vim with certain features, or on some other plugin? Do you check
for the version (and if so how) or do you check for some each
feature or for some feature which is indicative that the others
exist too? Is it best to check when the plugin is loaded or in
each function which needs a certain feature? What do you do when
the requirements aren't met --- issue a warning/error message or
just silently do nothing? My preference is definitely to issue a
message, but I'm concerned that it may be too noisy and get lost
if it is issued at loading time. 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.

TIA,

/bpj

--
--
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: