feat: add confirmation kind to select y/n
This commit is contained in:
@@ -93,7 +93,7 @@ function M.fn(node)
|
||||
end
|
||||
|
||||
if M.config.trash.require_confirm then
|
||||
vim.ui.select({ "y", "n" }, { prompt = "Trash " .. node.name .. " ?" }, function(choice)
|
||||
vim.ui.select({ "y", "n" }, { kind = "confirmation", prompt = "Trash " .. node.name .. " ?" }, function(choice)
|
||||
if choice == "y" then
|
||||
do_trash()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user