Skip to content

Commit

Permalink
fix(ui): Fix validation for select_prompt option
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Mar 23, 2024
1 parent 3ca5a17 commit 52c3b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/legendary/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local function select_inner(opts, context, itemlist)

vim.validate({
itemgroup = { opts.itemgroup, 'string', true },
select_prompt = { opts.select_prompt, 'function', true },
select_prompt = { opts.select_prompt, { 'string', 'function' }, true },
})

if itemlist then
Expand Down

0 comments on commit 52c3b24

Please sign in to comment.