A Neovim plugin that provides VSCode-style diff rendering with two-tier highlighting (line + character level) in side-by-side and inline layouts.
codediff.nvim is a Neovim plugin that replicates Visual Studio Code's diff rendering engine inside Neovim. It provides precise two-tier highlighting (line and character level) for code changes, supporting both side-by-side and inline layouts. The plugin solves the problem of clunky or visually unclear diff views in terminal editors by offering an IDE-grade comparison tool.
Neovim users who frequently review code changes, resolve merge conflicts, or need precise visual diffing during development workflows. It's particularly valuable for developers transitioning from VSCode or those who want professional-grade diff tools in their terminal editor.
Developers choose codediff.nvim because it delivers VSCode's battle-tested diff algorithm with identical visual output, but within Neovim's ecosystem. The combination of fast C-based computation, async git operations, and flexible configuration provides a superior alternative to native Neovim diff or other plugin solutions.
A Neovim plugin that provides VSCode-style diff rendering with two-tier highlighting (line + character level) in side-by-side and inline layouts, using VSCode's algorithm implemented in C.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements VSCode's diff algorithm in C for identical two-tier highlighting, with line-level backgrounds and character-level precision, as demonstrated in the demo videos and screenshots.
Uses FFI with multi-core parallelization via OpenMP for fast diff computation, avoiding Lua bottlenecks and matching VSCode's performance even for large files.
Supports runtime toggling between side-by-side and inline diff layouts with synchronized scrolling, allowing developers to switch based on preference without restarting.
Offers async git operations, a file explorer panel for revisions, and PR-like diff modes using merge-base semantics, enabling detailed code review workflows directly in Neovim.
Identifies and visually marks blocks of code that have moved within a file, matching VSCode's experimental feature, which aids in refactoring analysis.
Requires downloading and managing platform-specific C binaries, which can fail in offline environments or require manual troubleshooting if auto-download encounters network issues.
Lacks fold support for large diffs, as acknowledged in the roadmap, making navigation cumbersome in extensive change sets compared to more mature alternatives.
While it auto-adjusts highlights based on background, this may not work perfectly for all custom colorschemes, forcing manual configuration of char_brightness or explicit colors.
Requires Neovim 0.7.0+ for FFI support, excluding users on older versions or stable distributions that haven't updated, limiting backward compatibility.
codediff.nvim is an open-source alternative to the following products: