[mini.visits] vim.ui.input() in mini.visits? #1500
-
Contributing guidelines
Module(s)mini.visits QuestionIs there a reason why mini.visits does not uses vim.ui.input() for its prompts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, because the whole 'mini.nvim' mostly relies on Vimscript If/when there is |
Beta Was this translation helpful? Give feedback.
Yes, because the whole 'mini.nvim' mostly relies on Vimscript
input()
(i.e.vim.fn.input()
). This is because it is synchronous and returns the results compared to asynchronousvim.ui.input()
which runs a callback. The latter usually requires a more complex module structure compared to the former. So to have a coherent experience, 'mini.visits' also usesvim.fn.input()
.If/when there is
vim.ui.input
implementation in 'mini.nvim' (which will probably be able to return the input synchronously while being non-blocking) or interface ofvim.ui.input
changes to allow something likesync
options flag, 'mini.nvim' will probably move tovim.ui.input
all at once.