refactor: use vim.ui.input for y/n selections
also add clear_prompt again. fixes #1441
This commit is contained in:
@@ -38,6 +38,7 @@ function M.fn(with_sub)
|
||||
local input_opts = { prompt = "Rename to ", default = abs_path, completion = "file" }
|
||||
|
||||
vim.ui.input(input_opts, function(new_file_path)
|
||||
utils.clear_prompt()
|
||||
if not new_file_path then
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user