nvim-telescope/telescope-ui-select.nvim

Options aren't shown and can't be selected if `format_item` is not set

Diegovsky opened this issue · 2 comments

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:
image

However, if I instead set the format_item field to tostring, it works:
image

To quote :help vi.ui.select:

                                 • format_item (function item -> text)
                                   Function to format an individual item from
                                   `items`. Defaults to `tostring`.

my bad fixed in #7

thanks for reporting

Great! Thanks for the very fast fix 👍