ellisonleao / gruvbox.nvim

Lua port of the most famous vim colorscheme
MIT License
1.76k stars 185 forks source link

[BUG] Diff `+`/`-` are colored as punctuation (i.e: grey) instead of addition/deletions #339

Open ambroisie opened 1 month ago

ambroisie commented 1 month ago

Describe the bug

  1. Open a diff file, observe that the +/- at the start of lines are grey.

When running Inspect I get:

  - @diff.minus.diff links to DiffDelete diff
  - @punctuation.special.diff links to Delimiter diff

Expected behaviour

It should show up as red/green instead of grey.

Screenshots

No response

ambroisie commented 1 month ago

I think this is related to https://github.com/nvim-treesitter/nvim-treesitter/commit/3aa2e2f3747ee11dc4460ad98b25e887c33bb610 / https://github.com/nvim-treesitter/nvim-treesitter/pull/6619.

ambroisie commented 1 month ago

Correction: after applying https://github.com/ellisonleao/gruvbox.nvim/commit/20f90039564b293330bf97acc36dda8dd9e721a0, they are orange rather than grey. Arguably this is even more confusing.