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`.
I don't know if you can reproduce this, but on my setup, doing![image](https://user-images.githubusercontent.com/46163903/164982027-d55e8edc-9f8e-4284-b36b-2881efcef5bb.png)
: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![image](https://user-images.githubusercontent.com/46163903/164982092-88f0adbc-aca7-4a46-ae1c-96c95c093868.png)
format_item
field totostring
, it works:To quote
:help vi.ui.select
: