This is a small Neovim extension for resolving Git conflicts.
Proofreading for a friend, I suddenly had a bunch of conflicts to deal with from my corrections on one branch clashing with some of the merged corrections on the main branch. My process for resolving was straightforward:
:vnew
, such that I have two splits, side by side:windo diffthis
; this adds both splits to a diff list and basically just uses Vim's diff mode on the two splits, rather convenientObviously, this called for a plugin. Since I was looking to learn more about hacking Neovim with its Lua interface, I was happy for the opportunity too, but so far I've only had time to get a basic version done; probably good enough, but could be a bit nicer.