From 0042886db0099e4e6b5b965e5fb30d4cd9282faf Mon Sep 17 00:00:00 2001 From: xundaoxd Date: Sun, 6 Aug 2023 09:14:14 +0800 Subject: [PATCH] select yes default when select_prompts = false in lib.prompt (#2337) Co-authored-by: yinchaogao Co-authored-by: Alexander Courtis --- lua/nvim-tree/lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/lib.lua b/lua/nvim-tree/lib.lua index d96c2107..95c275c0 100644 --- a/lua/nvim-tree/lib.lua +++ b/lua/nvim-tree/lib.lua @@ -147,7 +147,7 @@ function M.prompt(prompt_input, prompt_select, items_short, items_long, callback callback(item_short) end) else - vim.ui.input({ prompt = prompt_input }, function(item_short) + vim.ui.input({ prompt = prompt_input, default = items_short[1] or "" }, function(item_short) callback(item_short) end) end