fix: bad nui parameter in last commit (#45)

This commit is contained in:
Steven Arcangeli 2022-06-07 08:03:59 -07:00
parent 55ce0400b2
commit d394a2591c
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ M.select = function(config, items, opts, on_choice)
for i, item in ipairs(items) do
local line = opts.format_item(item)
line_width = math.max(line_width, vim.api.nvim_strwidth(line))
table.insert(lines, Menu.item(item, { value = item, idx = i }))
table.insert(lines, Menu.item(line, { value = item, idx = i }))
end
if not config.size then