refactor: use vim.ui.input for y/n selections
also add clear_prompt again. fixes #1441
This commit is contained in:
@@ -93,7 +93,8 @@ function M.fn(node)
|
||||
end
|
||||
|
||||
if M.config.trash.require_confirm then
|
||||
vim.ui.select({ "y", "n" }, { kind = "confirmation", prompt = "Trash " .. node.name .. " ?" }, function(choice)
|
||||
vim.ui.input({ prompt = "Trash " .. node.name .. " ? y/n: " }, function(choice)
|
||||
utils.clear_prompt()
|
||||
if choice == "y" then
|
||||
do_trash()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user