junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
33.89k stars 1.9k forks source link

Add a number of public utility functions #1223

Open rsrchboy opened 1 year ago

rsrchboy commented 1 year ago

Some trivial functions to access s:loaded, to allow sane introspection of plugin status, etc.

Kamilcuk commented 7 months ago

I vote for this! What I would really want plug#is_loaded(name) so that I can check if a plugin is loaded and have plugin specific config there.

junegunn commented 5 months ago

What's the exact use case? Maybe some pseudo-code of what you're trying to achieve with these?