Merge pull request #44 from Weypare/original-select
fix(select): use original vim.ui.select if enabled is false
This commit is contained in:
commit
1706d00209
|
@ -32,7 +32,7 @@ return vim.schedule_wrap(function(items, opts, on_choice)
|
||||||
local config = global_config.get_mod_config("select", opts)
|
local config = global_config.get_mod_config("select", opts)
|
||||||
|
|
||||||
if not config.enabled then
|
if not config.enabled then
|
||||||
return patch.original_mods.input(items, opts, on_choice)
|
return patch.original_mods.select(items, opts, on_choice)
|
||||||
end
|
end
|
||||||
|
|
||||||
opts.prompt = opts.prompt or "Select one of:"
|
opts.prompt = opts.prompt or "Select one of:"
|
||||||
|
|
Loading…
Reference in New Issue