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

feat(packer): query what plugin to load if none if specified #1055

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AckslD
Copy link
Contributor

@AckslD AckslD commented Sep 7, 2022

This allows PackerLoad to take no arguments and in that case query the user for the plugin to load using vim.ui.select.

To do this a bit more cleanly I changed the command to be created with the lua api instead of vim.cmd. Maybe all commands should be changed to that but I think that's anyway the plan for #1042.

Also, is packer.loader considered part of the public api? Since this version changes it's expected argument. Could keep the same behaviour of packer.loader though if needed and have another internal function which is called by PackerLoad.

@AckslD
Copy link
Contributor Author

AckslD commented Sep 7, 2022

I guess we need to check if nvim_create_user_command actually exists, since 0.5 and 0.6 are still supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant