From 7d8313d86185ff509ffea63a3329a70fe7b33b85 Mon Sep 17 00:00:00 2001 From: MarcHamamji Date: Sun, 9 Apr 2023 14:09:07 +0300 Subject: [PATCH] Use vim.input's second form --- lua/runner/handlers/helpers.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/runner/handlers/helpers.lua b/lua/runner/handlers/helpers.lua index d8e13eb..a2b13c6 100644 --- a/lua/runner/handlers/helpers.lua +++ b/lua/runner/handlers/helpers.lua @@ -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()