olexsmir/gopher.nvim

No automatic loading of plugin commands when starting neovim

Opened this issue · 1 comments

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.

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.