Skip to content

[mini.visits] vim.ui.input() in mini.visits? #1500

Closed Answered by echasnovski
dangooddd asked this question in Q&A
Discussion options

You must be logged in to vote

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 asynchronous vim.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 uses vim.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 of vim.ui.input changes to allow something like sync options flag, 'mini.nvim' will probably move to vim.ui.input all at once.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.visits
2 participants