minimal extui fuzzy finder for neovim

fix(picker): wrap nonstring items

+4 -1
+4 -1
lua/artio/picker.lua
··· 127 127 128 128 function Picker:getitems(input) 129 129 self.items = self.get_items and self.get_items(input) or self.items 130 - if #self.items > 0 and type(self.items[1]) == "string" then 130 + if 131 + #self.items > 0 132 + and (type(self.items[1]) ~= "table" or not (self.items[1].v and self.items[1].id and self.items[1].text)) 133 + then 131 134 self.items = vim 132 135 .iter(ipairs(self.items)) 133 136 :map(function(i, v)