Closed djvolz closed 2 years ago
I like this suggestion! There's a few kinks to work out, the biggest one being the current implementation is tied to git — we parse a returned string, so the coupling is pretty strong. We might be able to make this work by having a configurable parsing function in addition to a configurable command, so people could write their own pair for whatever diffing method they want to use. We would probably want to have a list of common diff methods that can be specified so people aren't reinventing the wheel, and we would want to make adding to that section an easy PR.
Questions to mull over
New settings/global variables
I haven't had time to sit down and work on this plugin in a while — this seems like a fun one so I'll try to get to this in my next minimap binge.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm still interested in this issue if you end up with time for it.
If I find time, I can try to implement this and file a PR.
Would it be possible to pull diff ranges from a plugin like vim-signify? This would enable the mini map to display diff info for a variety of version control systems beyond git (including custom file diffs that aren't version controlled at all).
Alternatively you could allow users to define their own custom git call overriding
git diff -U0 --
.let g:minimap_diff_cmd = "hg diff --color=never --config aliases.diff= --nodates -U0 -- %f"
Here is vim-signify's default VCS cmd list for reference:
Great work on the plugin, love it!