barrettruth

treesitter syntax highlighting for diffs

53
1
100% credibility
Found Feb 09, 2026 at 17 stars 3x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Lua
AI Summary

diffs.nvim is a Neovim plugin that adds advanced syntax highlighting to git diffs, fugitive buffers, and merge conflicts for clearer code change visualization.

How It Works

1
πŸ‘‚ Hear about better change views

A friend mentions a handy tool that makes comparing file versions in your text editor colorful and easy to understand.

2
πŸ› οΈ Add the tool

You simply add this helper to your editor setup, and it's ready to go without hassle.

3
πŸ“‚ Open your project's changes

In your editor, you pull up the view showing what's new, changed, or removed in your files.

4
🌈 Colors come alive

Suddenly, differences light up with smart colors that match your file's style, making every change crystal clear.

5
πŸ” Spot tiny details

You see exactly which letters or words shifted inside lines, highlighted precisely so nothing hides.

6
⚑ Fix mix-ups easily

If versions clashed, simple presses let you pick your favorite part or blend them smoothly.

πŸŽ‰ Changes mastered

Now reviewing and fixing updates feels effortless, keeping your work perfect and team happy.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 17 to 53 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is diffs.nvim?

diffs.nvim is a Lua plugin for Neovim that adds Treesitter syntax highlighting to git diffs, turning bland fugitive buffers and built-in diff modes into language-aware views with nvim treesitter syntax highlighting for Python, Rust, or Markdown code. It parses diff hunks in isolation for accurate treesitter syntax highlighting, blending context lines to fix common nvim treesitter syntax highlighting not working issues. Users get :Gdiff commands for unified diffs against any revision, plus intra-line changes and inline merge conflict resolution.

Why is it gaining traction?

It supercharges vim-fugitive without replacing it, delivering character-level or word-level (via optional vscode-diff backend) highlights that make diffs readable like treesitter playground github demos. Unlike gitsigns.nvim or diffview.nvim, it prioritizes precise syntax over UI, with fallback vim syntax, customizable debounce, and background colors only on changed lines. Developers hook it via FileType events for seamless treesitter github neovim integration.

Who should use this?

Neovim power users glued to vim-fugitive for code reviews, especially backend devs diffing treesitter github io queries in Rust or Python hunks where tree sitter syntax error recovery matters. Perfect for teams with frequent merges needing quick conflict jumps via ]x/[x keymaps, avoiding treesitter syntax highlighting vscode switches.

Verdict

Solid docs and :help make it easy to eval, but 18 stars and 1.0% credibility score signal early maturityβ€”pre-commit hooks help, yet test gaps show. Grab it if fugitive diffs bug you; disable conflicting plugins like mini.diff first.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.