You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this file is creating plugin commands before an explicit load like require("gopher").setup(). For me, this is a problem because I'm loading the plugin inside the on_attach process of gopls to lazy-load the plugin only when the LSP is enabled. Is there a way to load this command only when the plugin is needed? Perhaps using the lua API for the commands.
The text was updated successfully, but these errors were encountered:
Currently, there is no way to lazy-load commands, or after .setup(). I had thoughts on registering commands after .setup(), and right now it's not on top of my priority list.
I think this file is creating plugin commands before an explicit load like
require("gopher").setup()
. For me, this is a problem because I'm loading the plugin inside theon_attach
process ofgopls
to lazy-load the plugin only when the LSP is enabled. Is there a way to load this command only when the plugin is needed? Perhaps using the lua API for the commands.The text was updated successfully, but these errors were encountered: