Commit graph

26 commits

Author SHA1 Message Date
a25f1e9d84 feat: treesitter highlighting for diff headers
Apply treesitter highlighting to diff metadata lines (diff --git, index,
---, +++) using the diff language parser. Header info is attached only
to the first hunk of each file to avoid duplicate highlighting.

Based on PR #52 by @phanen with fixes:
- header_lines now only contains diff metadata, not hunk content
- header info attached only to first hunk per file
- removed arbitrary hunk count restriction
2026-02-04 15:11:35 -05:00
da7b76555a docs: add incomplete syntax context as known limitation
Treesitter parses diff hunks in isolation without surrounding code
context, which can cause incorrect highlighting when hunks show partial
blocks (e.g., adding lines inside `return { ... }` without seeing the
`return`). Document this as a known limitation in README and vimdoc.
2026-02-04 13:16:22 -05:00
1723d68cb3 fix(doc): remove vim-fugitive as explicit requirement 2026-02-03 16:27:46 -05:00
de81fa26cf fix(doc): warn about conflicting diff plugins 2026-02-03 16:25:15 -05:00
bed98791e5 fix(doc): warn about conflicting diff plugins 2026-02-03 16:24:22 -05:00
ddbcec9a1c fix(doc): warn about conflicting diff plugins 2026-02-03 16:24:11 -05:00
83ffbc3c05 specify 2026-02-03 02:56:07 -05:00
f71b0f54c5 fix: remove useless enabled flag 2026-02-03 02:50:25 -05:00
259763ade4 prefer luarocks install 2026-02-03 01:40:27 -05:00
580fb5e5be fix: ci 2026-02-03 01:36:54 -05:00
2e5400f9c0 fix(doc): move hl documentation to the vimdoc 2026-02-03 01:33:31 -05:00
ee6f5e1c3e improve screenshot 2026-02-03 01:27:53 -05:00
188de47d77 feat: docs update (vim-fugitive is optional) 2026-02-03 01:07:37 -05:00
67116f38bc feat: rename everything 2026-02-02 22:09:13 -05:00
0b9a914f7e feat(doc): update to show more highlighting 2026-02-02 16:55:21 -05:00
0c76e5efcb feat(doc): new readme screenshot 2026-02-02 16:07:55 -05:00
Barrett Ruth
5db0e969bf
Update README.md 2026-02-02 01:12:26 -05:00
5d5587b22f feat(doc): add known limitations 2026-02-01 20:20:55 -05:00
73e333e856 acknowledge tpope 2026-02-01 20:10:37 -05:00
79959d1d06 feat(doc): acknowledgements 2026-02-01 19:56:14 -05:00
2b739e3eb7 fix(doc): render readme 2026-02-01 19:55:12 -05:00
2e69785929 feat(doc): image preview 2026-02-01 19:51:16 -05:00
f4b8e325dd feat(doc): more readme stuff 2026-02-01 19:43:30 -05:00
e12b0eb5fc feat(doc): readme 2026-02-01 19:37:44 -05:00
21b8cfb470 feat: add the entire plugin 2026-02-01 17:38:32 -05:00
30b82a7c3f initial commit 2026-02-01 16:25:08 -05:00