fix: vim.ui.input can accept string as its first arg
This is not part of the documentation, but it is true.
This commit is contained in:
parent
cbf7466a85
commit
37349af9e1
|
@ -15,6 +15,9 @@ return function(opts, on_confirm)
|
|||
})
|
||||
|
||||
opts = opts or {}
|
||||
if type(opts) ~= "table" then
|
||||
opts = { prompt = tostring(opts) }
|
||||
end
|
||||
local config = global_config.get_mod_config("input", opts)
|
||||
|
||||
local bufnr = vim.api.nvim_create_buf(false, true)
|
||||
|
|
Loading…
Reference in New Issue