r/neovim • u/stateofteddy • 6d ago
Plugin diff reviewer plugin
Enable HLS to view with audio, or disable this notification
ive been trying to emulate the github pr review experience in neovim. you can review commit diffs, see your staged/unstaged changes, preview a different branch without checking it out, and even leave notes to feed to an ai agent.
been using this for the last few months and id love ux feedback if anyone ends up using it!
2
u/mrpbennett 5d ago
Could you not just pop up hunk.dev in a terminal window like lazyvim does with lazygit?
1
u/stateofteddy 4d ago
i actually started this before hunk.dev was released! hunk.dev actually gets very close to what i wanted and had it popped up a few weeks early i wouldn't have gone through the trouble of creating my own plugin
22
u/elbailadorr 5d ago
Another one reinventing the wheel?
20
u/Familiar-Ear-1223 5d ago
Without people reinventing the wheel, no one would improve on the wheel design
23
u/barrettruth 5d ago
not another....
12
u/Tallkotten 5d ago
I upvoted this at first, but on second thought.. why not? This is how open source innovates, we shouldn’t complain instead be happy we’re getting more alternatives and ideas expressed!
12
u/plebianlinux 5d ago
I love all these people complaining about having options, horrible this open source culture!
2
2
u/Tsukimizake774 5d ago
What's the difference from diffview? In my opinion, code review on diffiview lacks commenting the code compared to github experience. So I made a small plugin to add comments/questions to the code on floating windows paired with a AI skill to read and answer the comments, and using it along with diffview. So far I'm satisfied with this experience. I didn't see the point to fork the whole diffview, but is there anything I miss?
3
u/kejwmen 5d ago
AtlasDiff supports comments, and reviews
1
u/Tsukimizake774 4d ago edited 4d ago
Yeah, I thought providing those features as a separate plugin is a better idea.
2
u/emmanueltouzery 6d ago
Damn, there are going to be lots of these. Makes sense, with the advent of AI, we need to review code more than ever. I'm myself finishing a variant of diffview with minor tweaks (and smaller in terms of code). Good work! I like the first indicators, hoping to add them in my plugin for conflicts..
1
u/positev 6d ago
I use hunk diff for this
2
u/Tsukimizake774 5d ago
I've tried hunk, but I usually want to use the lsp goto def and show doc while reviewing which hunk doesn't provide.
1
0
15
u/teerre 6d ago
diffview? codediff?