a drop-in replacement of vim.ui.{input,select}
tui-2023-05-16_21.36.42.mp4
- use floating windows rather than
:input
- nvim 0.9.*
- haolian9/infra.nvim
- just works (tm)
vim.ui.input = function(...) require'tui.input'(...) end
vim.ui.select = function(...) require'tui.select'(...) end
- tui.{input,menu} employ a dedicated buffer to avoid the overhead of frequently creating the buffer, creating/binding rhs functions.
- tui.menu use
map <nowait>
to disable [a-z]+'s native rhs