Commit graph

2 commits

Author SHA1 Message Date
e042ca35a8 refactor(gitsigns): use parser.get_lang_from_ft instead of local copy 2026-03-06 08:40:56 -05:00
09a0418942 feat(gitsigns): highlight blame popup with treesitter and intra-line diffs
Problem: gitsigns blame popups show flat `GitSignsAddPreview`/
`GitSignsDeletePreview` highlights with no treesitter syntax or
character-level intra-line diffs.

Solution: add `lua/diffs/gitsigns.lua` which patches `Popup.create`
and `Popup.update` to intercept blame popups, parse hunk sections,
clear gitsigns' own highlights, and apply `highlight_hunk` with
manual `@diff.plus`/`@diff.minus` prefix extmarks. Wired in
`plugin/diffs.lua` with `User GitAttach` lazy-load retry.
2026-03-06 08:35:26 -05:00