Skip to content

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

Open
AckslD wants to merge 2 commits into
wbthomason:masterfrom
AckslD:loader-picker
Open

AckslD wants to merge 2 commits into
wbthomason:masterfrom
AckslD:loader-picker

Conversation

@AckslD

@AckslD AckslD commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

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

AckslD commented Sep 7, 2022

Copy link
Copy Markdown
Contributor Author

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.

1 participant