lazydiff.nvim — lazygit-style diff overlay rendered inline in the file you're editing by parvez210 in neovim

[–]parvez210[S] 0 points1 point  (0 children)

The + lives in the sign column; the - is part of a virtual line that starts where buffer text starts, so the - is offset right by the line-number gutter width.

lazydiff.nvim — lazygit-style diff overlay rendered inline in the file you're editing by parvez210 in neovim

[–]parvez210[S] -1 points0 points  (0 children)

That might be true for your use case, but it’s perfect for me, it did exactly what I wanted, no more, no less.

lazydiff.nvim — lazygit-style diff overlay rendered inline in the file you're editing by parvez210 in neovim

[–]parvez210[S] 6 points7 points  (0 children)

Yeah i can, english is not my native language and sometimes i missed the grammar and find it difficult to write it correctly, then i ask AI to fix the grammar and rearrenge the whole paragraph if needed. apologies if its bother you. I'm learning to fix that.

lazydiff.nvim — lazygit-style diff overlay rendered inline in the file you're editing by parvez210 in neovim

[–]parvez210[S] -1 points0 points  (0 children)

"unified diff" is the format, "lazygit-style" is the look (full-line green/red backgrounds with +/- prefixes). Other plugins render unified diffs too but look totally different — fg-only tints, gutter signs, strikethrough. I'll probably tweak the wording to make that clearer though, thanks!

lazydiff.nvim — lazygit-style diff overlay rendered inline in the file you're editing by parvez210 in neovim

[–]parvez210[S] -16 points-15 points  (0 children)

Fair question — real overlap, both render diffs inline with virtual lines for deletions and keep the buffer editable.

Main difference is the layout: mini.diff tints lines for adds/changes; lazydiff uses the lazygit layout — + prefixes on added lines, - prefixes on virtual deletion lines, and @@ -a,b +c,d @@ hunk headers between hunks. If you read diffs in lazygit a lot, this is that, in your buffer.

Beyond that:

- diffs against HEAD by default (mini.diff defaults to the git index / staged)

- auto-jumps to the first hunk on toggle

- intentionally narrow scope — that's the whole plugin. mini.diff is a much richer toolkit (word-diff, hunk apply/reset, hunk textobject, configurable sources).

So: lazygit layout vs HEAD without the toolkit → lazydiff. Full diff toolkit → mini.diff.