refactor: use vim.ui.input for y/n selections
also add clear_prompt again. fixes #1441
This commit is contained in:
@@ -68,7 +68,8 @@ function M.fn(node)
|
||||
return
|
||||
end
|
||||
|
||||
vim.ui.select({ "y", "n" }, { kind = "confirmation", prompt = "Remove " .. node.name .. " ?" }, function(choice)
|
||||
vim.ui.input({ prompt = "Remove " .. node.name .. " ? y/n: " }, function(choice)
|
||||
utils.clear_prompt()
|
||||
if choice == "y" then
|
||||
if node.nodes ~= nil and not node.link_to then
|
||||
local success = remove_dir(node.absolute_path)
|
||||
|
||||
Reference in New Issue
Block a user