Skip to content

Commit

Permalink
fix(prompt): use vim.fn.confirm for no-popup prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
konosubakonoakua committed Jan 29, 2024
1 parent e578fe7 commit 59c757d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lua/neo-tree/ui/inputs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ M.confirm = function(message, callback)
input.prompt_type = "confirm"
M.show_input(input)
else
local opts = {
prompt = message .. " y/n: ",
}
vim.ui.input(opts, function(value)
callback(value == "y" or value == "Y")
end)
callback(vim.fn.confirm(message, "&y[Y]\n&n[N]"))
end
end

Expand Down

0 comments on commit 59c757d

Please sign in to comment.