Skip to content

Commit

Permalink
Merge pull request #441 from mrjones2014/mrj/440/fix-select-prompt-va…
Browse files Browse the repository at this point in the history
…lidator

fix(ui): Fix validation for `select_prompt` option
  • Loading branch information
mrjones2014 authored Mar 23, 2024
2 parents 3ca5a17 + 52c3b24 commit d4f7b59
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 d4f7b59

Please sign in to comment.