bluz71 / vim-moonfly-colors

A dark charcoal theme for modern Neovim & classic Vim
MIT License
880 stars 64 forks source link

Not correct colors for git diff #54

Closed heyarviind closed 10 months ago

heyarviind commented 10 months ago

I loved the theme and thank you for the great work. I don't know if I have something misconfigured or it is the default colors but when I open git diff in nvim the colors are just gray. I am expecting it to show green for additions and red for the deletions.

Screenshot 2024-01-03 at 12 28 18 AM

Is there a way i can update the colors?

bluz71 commented 10 months ago

That is the intended style, greenish highlights for new line added, and blueish highlights for changes. Deleted lines are intentionally styled as subtle gray.

Why is it this way? The use of muted green & blue allows use of code syntax highlighting in diffs, even for new blocks of code.

I do recommend setting the diff character as some type of leaning slash, as compared to default hyphen, something such as set fillchars=diff:⁄.

Here is what my setup looks like, the leaning slashes makes deleted text obvious:

Diff

However, if that does not suffice, then you can override highlights for the DiffDelete highlight group per your choice.

Best regards.