Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Neovim
  3. actions-preview.nvim

actions-preview.nvim

GPL-3.0Lua

A Neovim plugin that previews code changes from LSP code actions before applying them.

GitHubGitHub
514 stars20 forks0 contributors

What is actions-preview.nvim?

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.

Target Audience

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.

Value Proposition

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.

Overview

Fully customizable previewer for LSP code actions.

Use Cases

Best For

  • Previewing refactoring changes like renaming symbols across a codebase
  • Inspecting quick fixes suggested by language servers before applying them
  • Comparing different code action options visually to choose the best one
  • Avoiding unintended modifications when using automated code actions
  • Enhancing LSP workflows in Neovim with interactive diff previews
  • Customizing the code action UI with preferred pickers and diff tools

Not Ideal For

  • Teams relying on language servers that implement code actions via Command instead of TextEdit, as previews are unavailable.
  • Users who prefer a minimal Neovim setup without additional picker plugins like Telescope or nui.nvim.
  • Windows developers not using PowerShell, since external diff highlighting is unsupported with cmd.exe.
  • Workflows where immediate application of code actions is prioritized over previewing changes.

Pros & Cons

Pros

Live Diff Previews

Displays side-by-side diffs for LSP code actions, allowing precise inspection of changes before application, which helps prevent errors during refactoring or fixes.

Flexible UI Integration

Supports multiple backends like Telescope and mini.pick, enabling seamless integration with existing Neovim picker setups for a customized workflow.

Enhanced Diff Highlighting

Configurable to use external tools like delta and diff-so-fancy for superior visual clarity, going beyond Neovim's built-in diff capabilities.

High Customizability

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.

Cons

Language Server Limitations

Some language servers use Command-based code actions which cannot be previewed, making the plugin ineffective for those cases, as admitted in the FAQ.

Setup Complexity

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.

External Tool Dependency

For advanced diff highlighting, users must install and manage external commands like delta, adding extra setup overhead and potential compatibility issues.

Frequently Asked Questions

Quick Stats

Stars514
Forks20
Contributors0
Open Issues9
Last commit25 days ago
CreatedSince 2022

Tags

#neovim-plugin#lsp-client#developer-productivity#telescope#nvim-plugin#neovim#nvim#refactoring#editor-tooling#code-actions#lsp#telescope-nvim

Built With

N
Neovim
L
LSP
L
Lua

Included in

Neovim20.6k
Auto-fetched 16 hours ago

Related Projects

nvim-lspconfignvim-lspconfig

Quickstart configs for Nvim LSP

Stars13,647
Forks2,449
Last commit1 day ago
lspsaga.nvimlspsaga.nvim

improve neovim lsp experience

Stars3,788
Forks302
Last commit3 days ago
none-ls.nvimnone-ls.nvim

null-ls.nvim reloaded / Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.

Stars3,240
Forks119
Last commit5 days ago
rustaceanvimrustaceanvim

🦀 Supercharge your Rust experience in Neovim! A heavily modified fork of rust-tools.nvim

Stars2,974
Forks134
Last commit19 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub