Skip to content

Commit

Permalink
Merge pull request #319 from cmoog/treesitter-diff
Browse files Browse the repository at this point in the history
use treesitter `@diff.` capture groups
  • Loading branch information
ful1e5 authored May 2, 2024
2 parents d92e114 + 0204f54 commit fe06e0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/github-theme/group/modules/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ If you want to stay on nvim 0.7, disable the module, or track on 'v0.0.x' branch

['@text.diff.add'] = { link = 'diffAdded' }, -- Added text (for diff files)
['@text.diff.delete'] = { link = 'diffRemoved' }, -- Deleted text (for diff files)
['@diff.plus'] = { link = "diffAdded" },
['@diff.minus'] = { link = "diffRemoved" },
['@diff.delta'] = { link = "diffChanged" },

-- Tags
['@tag'] = { fg = syn.tag }, -- Tags like html tag names
Expand Down

0 comments on commit fe06e0b

Please sign in to comment.