1

Is there a way to switch out magit's diff display with a 3rd party output?

I would like to use delta which has syntax highlighting & word-level diffs.

Is there a way of integrating 3rd party packages? Or would I be better off writing my own package that launches a different kind of diff view from magit?

enter image description here

This is a comparison with vdiff & delta. enter image description here


Note: I'm awaer of ediff, however it doesn't seem to have a way to produce a small/concise summary of the diff (the whole buffer is shown and each file needs to be handled one-by-one).

1
  • Not an answer to your question, but: (setq magit-diff-refine-hunk 'all) gets you that nice word-level highlighting in magit diffs. Delta looks awesome though, I'll have to check that out! Commented Oct 20, 2021 at 14:34

1 Answer 1

1

There is a package magit-delta that does exactly this.

1
  • Unfortunately this packages only colors magit's diff, it doesn't support a side-by-side diff. Commented Oct 17, 2021 at 12:50

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.