Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No automatic loading of plugin commands when starting neovim #70

Open
phrmendes opened this issue Jul 15, 2024 · 1 comment
Open

No automatic loading of plugin commands when starting neovim #70

phrmendes opened this issue Jul 15, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@phrmendes
Copy link

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.

@olexsmir olexsmir added enhancement New feature or request good first issue Good for newcomers labels Jul 16, 2024
@olexsmir
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants