Skip to content
Discussion options

You must be logged in to vote

Indeed, command in builtin.cli() should be a single CLI command (as in: can be used in vim.uv.spawn()). The best way I can suggest to implement this is via builtin.cli() and its postprocess field. It will be called with array of items and should return the array of items. You can apply custom sorting there. If you want to make it async, I think returning empty table while scheduling MiniPick.set_picker_items() with sorted items when they are ready should do the trick.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants