Announcing ‘mini.diff’

announce
reddit
Work with diff hunks. Interactively visualize difference between current and reference text
Author

Evgeni Chasnovski

Published

March 28, 2024

Originally posted on Reddit

Hello, Neovim users!

Please join me in cheering the release of mini.diff - new module of mini.nvim for visualizing difference between buffer and reference text which is updated as you type. It can also be installed using separate GitHub repository.


TL;DR: this is mostly similar to ‘lewis6991/gitsigns.nvim’, but with slight differences:


For a very long time I hesitated writing ‘gitsigns.nvim’ alternative to be included in ‘mini.nvim’. Mostly because it seemed to be almost impossible to squeeze all the diffing and Git functionality into a reasonably small file (which is a design goal for all ‘mini.nvim’ modules).

But after looking at how it is done in ‘gitsigns.nvim’, I realized that it utilizes built-in vim.diff() authored by Lewis Russell (a.k.a lewis6991) himself, and suddenly it became feasible. So I am really grateful for Lewis’s work in core, as without it this module would probably never happen.


Features:

What it doesn’t do:

For slightly more details, see overview in README.

For even more information, see these tags in help file:


Please, check it out and tell me what you think! You can leave your suggestions either here in comments or in dedicated beta-testing issue.

Thanks!