Commit graph

3 commits

Author SHA1 Message Date
2528886802 refactor: standardize log prefixes to [diffs.nvim]:
Problem: `lib.lua` used `[diffs]` and `debug.lua`/`init.lua` used
`[diffs.nvim]` (no colon) while the rest of the codebase used
`[diffs.nvim]:`.

Solution: Normalize all `vim.notify` prefixes to `[diffs.nvim]:` for
consistency with `log.lua` and the other modules.
2026-03-10 11:11:14 -04:00
2d72963f8f fix(debug): resolve sparse array crash in json dump
Problem: vim.json.encode fails with "excessively sparse array" when
extmark row numbers are used as integer table keys, since they create
gaps in the array.

Solution: use tostring(row) as keys instead. Also add hl_eol to dumped
extmark fields for debugging line background extmarks.
2026-02-07 00:50:02 -05:00
cc947167c3 fix(highlight): use hl_group instead of line_hl_group for diff backgrounds
line_hl_group bg occupies a separate rendering channel from hl_group in
Neovim's extmark system, causing character-level bg-only highlights to be
invisible regardless of priority. Switching to hl_group + hl_eol ensures
all backgrounds compete in the same channel.

Also reorders priorities (Normal 198 < line bg 199 < syntax 200 < char
bg 201), bumps char-level blend alpha from 0.4 to 0.7 for visibility,
and adds debug logging throughout the intra pipeline.
2026-02-06 18:31:10 -05:00