sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.57k stars 101 forks source link

No syntax highlighting for changed / deleted / updated lines #467

Closed t-ober closed 1 month ago

t-ober commented 4 months ago

I can not quit figure out why there is no syntax highlighting going on for changed / deleted / updated lines. That makes the corresponding code quite hard to read.

Here is an example:

image

It does not seem to be dependent on the theme I am using. Any pointers would be much appreciated 🙂

t-ober commented 4 months ago

I am using NvChad, so it might have something to do with how they set up the ui and themes.

eonpatapon commented 4 months ago

Check the highlight you have for DiffText

sindrets commented 1 month ago

We don't change any builtin highlights here. This is related to your color scheme. If you wish to customize the diff highlights, the relevant groups are documented under :h hl-DiffAdd.