Use vim.input's second form

This commit is contained in:
MarcHamamji 2023-04-09 14:09:07 +03:00
parent 7bae8dd2f3
commit 7d8313d861

View File

@ -16,7 +16,10 @@ M.shell_handler = function(command, editable)
end
return function(_)
if editable then
command = vim.fn.input('Command: ', command)
command = vim.fn.input {
prompt = 'Command: ',
default = command,
}
end
local output_buffer = utils.create_buffer()