Skip to content

Commit 0042886

Browse files
xundaoxdyinchaogaoalex-courtis
authored
select yes default when select_prompts = false in lib.prompt (#2337)
Co-authored-by: yinchaogao <yinchaogao@deeproute.ai> Co-authored-by: Alexander Courtis <alex@courtis.org>
1 parent 6c3ddcb commit 0042886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/lib.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function M.prompt(prompt_input, prompt_select, items_short, items_long, callback
147147
callback(item_short)
148148
end)
149149
else
150-
vim.ui.input({ prompt = prompt_input }, function(item_short)
150+
vim.ui.input({ prompt = prompt_input, default = items_short[1] or "" }, function(item_short)
151151
callback(item_short)
152152
end)
153153
end

0 commit comments

Comments
 (0)