A Neovim plugin that provides real-time previews for commands like :norm and macros as you type.
live-command.nvim is a Neovim plugin that provides real-time previews for text editing commands. It allows users to see the immediate effects of commands like `:norm` and macros on their buffer as they type, enhancing the editing experience with visual feedback. The plugin simplifies the process of creating previewable commands through a straightforward API.
Neovim users and plugin developers who want interactive command previews and visual feedback during text editing, particularly those working with complex macros or normalization commands.
It offers an easy-to-use API for creating previewable commands without manual buffer updates, with built-in diff highlighting and customization options, making it a seamless upgrade over Neovim's limited command-preview feature.
Easily create previewable commands in Neovim.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Setup is minimal with clear Lua examples for package managers like lazy.nvim, allowing quick addition of previewable commands without boilerplate code.
It automatically highlights insertions, deletions, and changes using diff algorithms, providing immediate insight into command effects as you type.
The API lets users define previewable commands with just a name and existing command, such as creating a :Norm command for normalization workflows.
Highlights are customizable via hl_groups, and inline highlighting offers detailed difference visualization within lines, enhancing precision.
Version 2.0 introduced breaking changes that require following a migration guide, potentially disrupting existing configurations for users.
It only supports Neovim 0.8 or newer, excluding users on older versions or other Vim distributions, as noted in the requirements.
Real-time diffing and highlighting might add latency on large buffers or with complex commands, a trade-off for the visual feedback.