Options aren't shown and can't be selected if `format_item` is not set
Diegovsky opened this issue · 2 comments
Diegovsky commented
I don't know if you can reproduce this, but on my setup, doing :lua vim.ui.select({0, 2, 3}, {prompt="Choose"}, print)
yields a picker with no options and the werdest part is that it knows the list length:
However, if I instead set the format_item
field to tostring
, it works:
To quote :help vi.ui.select
:
• format_item (function item -> text)
Function to format an individual item from
`items`. Defaults to `tostring`.
Diegovsky commented
Great! Thanks for the very fast fix 👍