Create custom submodes and menus in Neovim to reduce repetitive prefix key presses.
Hydra.nvim is a Neovim plugin that creates custom submodes, allowing users to press a prefix key once to activate a set of related keybindings, which can then be used repeatedly without re-pressing the prefix. It solves the problem of repetitive prefix key presses in Vim/Neovim for operations like window resizing or buffer scrolling, making workflows faster and more intuitive.
Neovim users who frequently use multi-key commands and want to optimize their workflow by reducing keystrokes and creating custom modal interfaces for specific tasks.
Developers choose Hydra.nvim for its seamless integration with Neovim, customizable visual hints, and flexible behavior options (like color-coded exit strategies), which provide a powerful way to manage complex keybindings without disrupting normal editing flow.
Create custom submodes and menus
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Eliminates repetitive prefix presses for multi-key commands, as shown in the window resizing example where <C-w> is pressed once then +, -, <, > can be used sequentially.
Offers configurable hint windows, cmdline, or statusline integration with color-coded heads, detailed in the Hint Configuration section for clear feedback.
Supports colors like red, blue, and pink to define exit strategies and foreign key handling, allowing tailored submode experiences per the color table.
Hooks like on_enter with meta-accessors enable temporary option changes without manual cleanup, as explained in the Hooks section.
Red, amaranth, and teal hydras do not support [count] prefixes, limiting operations that benefit from numeric multipliers, as admitted in the Limitations section.
Requires understanding Lua tables and multiple options like heads, config, and hooks, which can be daunting for users new to Neovim's API.
Adds a key processing layer, especially for pink hydras, which may impact performance in minimal setups or resource-constrained environments.