Api to check if a plugin is loaded #1467
Replies: 1 comment 2 replies
-
solved. I just needed to use the package variable |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this problem: in plugin A i want to call plugin B only if plugin B is already loaded, but if i use
require(B)
it force the plugin B to load, which i would like to avoid.So is there some way to check if a plugin is loaded, this way i can run
require(B)
only if B is already loaded?to be more specific, in my example plugin B is conform and plugin A is lualine, and i have the following code:
and I would like conform from being loaded by lualine, if conform itself wasn't loaded yet.
Beta Was this translation helpful? Give feedback.
All reactions