Skip to content

Comments

feat: add treesitter highlights for diff files#23

Merged
barrettruth merged 2 commits intomainfrom
feat/treesitter-diff-highlights
Feb 4, 2026
Merged

feat: add treesitter highlights for diff files#23
barrettruth merged 2 commits intomainfrom
feat/treesitter-diff-highlights

Conversation

@barrettruth
Copy link
Owner

@barrettruth barrettruth commented Feb 4, 2026

Adds treesitter capture support for diff file syntax highlighting:

  • @diff.minus → red for deleted lines
  • @diff.plus → green for added lines
  • @attribute.diff → blue for hunk headers (@@ ... @@)
  • @string.special.path, @variable.parameter → Normal (minimal)

closes #22

Adds support for treesitter-based diff syntax highlighting:
- @diff.minus (red) and @diff.plus (green) for changed lines
- @attribute.diff (blue) for hunk headers
- @string.special.path and @variable.parameter linked to Normal
@barrettruth barrettruth merged commit b496f26 into main Feb 4, 2026
5 checks passed
@barrettruth barrettruth deleted the feat/treesitter-diff-highlights branch February 4, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

more diff highlight groups

1 participant