feat(create-file): use vim.ui.select for confirmation

fixes #1434
fixes #1294
This commit is contained in:
kiyan
2022-07-18 14:32:19 +02:00
parent 2d629cab78
commit 1ee6a3ea65
3 changed files with 25 additions and 25 deletions

View File

@@ -96,18 +96,6 @@ end
M.path_separator = path_separator
function M.clear_prompt()
vim.api.nvim_command "normal! :"
end
function M.get_user_input_char()
local c = vim.fn.getchar()
while type(c) ~= "number" do
c = vim.fn.getchar()
end
return vim.fn.nr2char(c)
end
-- get the node and index of the node from the tree that matches the predicate.
-- The explored nodes are those displayed on the view.
-- @param nodes list of node