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>
This commit is contained in:
@@ -147,7 +147,7 @@ function M.prompt(prompt_input, prompt_select, items_short, items_long, callback
|
|||||||
callback(item_short)
|
callback(item_short)
|
||||||
end)
|
end)
|
||||||
else
|
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)
|
callback(item_short)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user