A Neovim plugin that previews code changes from LSP code actions before applying them.
actions-preview.nvim is a Neovim plugin that provides a preview interface for Language Server Protocol (LSP) code actions. It shows a diff of the proposed changes before they are applied, helping developers avoid mistakes during refactoring or code fixes. The plugin integrates with various Neovim picker backends for a seamless user experience.
Neovim users who work with LSP-enabled languages and frequently use code actions for refactoring, quick fixes, or code improvements. It's particularly useful for developers who want visual confirmation before applying automated changes.
It offers a unique visual diff preview for LSP code actions, which is not natively available in most LSP clients. The plugin supports multiple UI backends and is highly customizable, allowing users to tailor the preview experience to their workflow.
Fully customizable previewer for LSP code actions.
Displays side-by-side diffs for LSP code actions, allowing precise inspection of changes before application, which helps prevent errors during refactoring or fixes.
Supports multiple backends like Telescope and mini.pick, enabling seamless integration with existing Neovim picker setups for a customized workflow.
Configurable to use external tools like delta and diff-so-fancy for superior visual clarity, going beyond Neovim's built-in diff capabilities.
Offers extensive options for layouts, diff algorithms, and picker themes, allowing users to tailor the preview experience to their preferences, as shown in the setup examples.
Some language servers use Command-based code actions which cannot be previewed, making the plugin ineffective for those cases, as admitted in the FAQ.
Requires configuration with external pickers and optional diff tools, which can be complex for users not already familiar with these dependencies or seeking a plug-and-play solution.
For advanced diff highlighting, users must install and manage external commands like delta, adding extra setup overhead and potential compatibility issues.
Quickstart configs for Nvim LSP
improve neovim lsp experience
null-ls.nvim reloaded / Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
🦀 Supercharge your Rust experience in Neovim! A heavily modified fork of rust-tools.nvim
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.