mini.input
Get user input. Part of 'mini.nvim' library.
A Neovim plugin that replaces the built-in input prompt with a non-blocking, configurable version that supports floating windows, status bar display, and custom key handling without freezing the editor.
This is a plugin for Neovim, a highly configurable text editor used mainly by developers and power users. The plugin is called mini.input, and its job is to handle asking the user for typed input inside the editor, then collecting and returning whatever they type.
It is part of a larger collection of small, focused plugins called mini.nvim. Each plugin in that collection does one specific thing. This one handles the input prompt, which is the little text box that pops up when a program needs you to type something, such as a new filename or a search term.
The main feature is that the input prompt is non-blocking, meaning the editor does not freeze while waiting for your response, and it works in any editing mode without requiring you to switch modes first. The way the input appears is configurable: it can show up as a floating window, in the status bar at the bottom, or as an overlay on the current line. You can also plug in custom logic to control which keys do what, how the text is highlighted as you type, and how completion suggestions are generated.
The plugin also replaces the built-in vim.ui.input function that other plugins use to ask for input, so any plugin that calls that standard function will automatically get mini.input's nicer interface once it is installed.
Installation follows the same process as other mini.nvim plugins: add it through your plugin manager of choice and call the setup function. The README lists examples using vim.pack, mini.deps, and lazy.nvim. Windows users may need to enable long file path support in git before installing. Configuration is done by passing a table to setup, with options for the four handler functions and the default input scope.
Where it fits
- Replace Neovim's default input prompt with a non-blocking version so the editor never freezes while waiting for your response.
- Display input prompts as a floating window, in the status bar, or inline on the current line to match your workflow.
- Automatically upgrade the input experience for every plugin that calls vim.ui.input without modifying those plugins.