feat: pass items to get_config for vim.ui.select

This commit is contained in:
Steven Arcangeli 2022-07-31 08:12:18 -07:00
parent d98769dfc2
commit d886a1bb0b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ return vim.schedule_wrap(function(items, opts, on_choice)
on_choice = { on_choice, "function", false },
})
opts = opts or {}
local config = global_config.get_mod_config("select", opts)
local config = global_config.get_mod_config("select", opts, items)
if not config.enabled then
return patch.original_mods.select(items, opts, on_choice)