This repository contains a set of commands for Neovim that allow you to perform partial diffs on your code.
partial-diff-demo.mov
PartialDiffA
: Marks a range of lines as the first part of the diff.PartialDiffB
: Marks a range of lines as the second part of the diff.PartialDiffDelete
: Deletes the current partial diff.
Follow the steps below to use these commands:
- Select the range of lines with visual mode.
- Type
:PartialDiffA
. - Select another range of lines with visual mode.
- Type
:PartialDiffB
. - View the diff.
:'<,'>PartialDiffA
:'<,'>PartialDiffB
To delete the current diff, use the PartialDiffDelete
command.
Using lazy.nvim
{
"ryutaro-asada/partial-diff.nvim",
},
If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.