Use vim.input's second form

This commit is contained in:
Marc 2023-04-09 14:20:26 +03:00 committed by GitHub
commit c06f581503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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