Open nicoe opened 3 weeks ago
Thanks for the suggestion! Glad you're liking 'mini.diff' so far :)
I ended up creating a source that is handling both but I find it quite ugly. I wonder if it wouldn't be interesting to plug a function somewhere so that the source used by the buffer can be programmatically decided.
Yes, this was the intended solution for this kind of problems. I'll take a look at how this can be made easier, but it will probably happen after the next stable 'mini.nvim' release.
Contributing guidelines
Module(s)
mini.diff
Description
I started to use mini.diff and it works great, thanks for all the work!
In my job, I'm using both mercurial and git, so I quickly felt the need to have a source for mercurial. But I didn't found a way to select the right source from the detected VCS managing the file in the buffer.
I ended up creating a source that is handling both but I find it quite ugly. I wonder if it wouldn't be interesting to plug a function somewhere so that the source used by the buffer can be programmatically decided.
For the record here is what I've written (it might be useful to someone) but it's a quick hack and this is nearly my first time writing some lua so I've probably made a lot of mistakes :)