nvim-telescope / telescope-ui-select.nvim

MIT License
774 stars 18 forks source link

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

Closed Diegovsky closed 2 years ago

Diegovsky commented 2 years ago

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`.
Conni2461 commented 2 years ago

my bad fixed in #7

thanks for reporting

Diegovsky commented 2 years ago

Great! Thanks for the very fast fix :+1: