feat: error message when passing associative table to select
This commit is contained in:
parent
37349af9e1
commit
18a3548205
|
@ -16,7 +16,13 @@ end
|
|||
|
||||
return function(items, opts, on_choice)
|
||||
vim.validate({
|
||||
items = { items, "table", false },
|
||||
items = {
|
||||
items,
|
||||
function(a)
|
||||
return type(a) == "table" and vim.tbl_islist(a)
|
||||
end,
|
||||
"list-like table",
|
||||
},
|
||||
on_choice = { on_choice, "function", false },
|
||||
})
|
||||
opts = opts or {}
|
||||
|
|
Loading…
Reference in New Issue