catppuccin/emacs

Support word granularity git diffs

Closed this issue · 5 comments

In dracula theme:

Screenshot_20240704_140857

Switch to catppuccin theme:

Screenshot_20240704_140841

jtbx commented

What face is magit using to display that line diff? If you don't know just move your cursor over one of those highlighted changes in the dracula theme and press M-x describe-char, and it'll tell you the face it's using for that character.

What face is magit using to display that line diff?

diff-refine-added and diff-refine-removed

jtbx commented

Weird, those faces aren't used in my magit. Do you have any special setup at all?

I was experimenting around with trying to support this in #158 (using diff-refine- faces) but I could only see a difference in diff-mode. If your magit uses those faces for some reason then #158 should work as a fix for you, but it would be awesome if you could try those changes out yourself and let me know about it. Currently I'm still experimenting with the colours on that PR, nothing's final yet.

Weird, those faces aren't used in my magit. Do you have any special setup at all?

I haven't set up magit myself, but I'm using Doom Emacs, so that might be the reason. 🤔

but it would be awesome if you could try those changes out yourself and let me know about it

I tried the changes in #158, and they worked for me. However, the foreground color can be adjusted to make the text stand out better.

image

jtbx commented

Thank you!