lucc / nvimpager

Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting
Other
386 stars 20 forks source link

Git diff uses "Identifier" highlight group for "Adding" lines #93

Closed igorgue closed 9 months ago

igorgue commented 10 months ago

I'm a theme developer, when I try to run git diff the colors nvimpager picks up for the "Added lines" highlight is "Identifier" I have that color similar to "Normal" (fg) and unfortunately I cannot see the "+" with that color.

Is there a way to figure out the highlight group to change in my theme?

lucc commented 10 months ago

I think that is nvim/runtime/syntax/diff.vim line 382.

I did

  1. git diff HEAD~20
  2. :set ft?
  3. :scriptnames
  4. :tabedit .....nvim/runtime/syntax/git.vim
  5. /Identifier brings me to line 103: hi def link gitHash Identifier that does not look right
  6. /include brings me to line 13: syn include @gitDiff syntax/diff.vim
  7. :scriptnames
  8. :tabedit .....nvim/runtime/syntax/diff.vim
  9. /Identifier