diffs.nvim/lua
Barrett Ruth 4e11858c6e
feat(neogit): use new neogit apis for highlight and repo root
Problem: diffs.nvim blanked 18 Neogit highlight groups globally on
attach and fell back to getcwd() plus a subprocess call for repo root
detection, with no cache refresh when Neogit lazy-loads new hunks.

Solution: adopt three APIs from Neogit PR #1897:
- set vim.b.neogit_disable_hunk_highlight = true on attach instead
  of overriding 18 hl groups globally
- read vim.b.neogit_git_dir for reliable repo root resolution
- register User NeogitDiffLoaded per-buffer to refresh hunk cache

Closes #128
2026-02-25 10:22:33 -05:00
..
diffs feat(neogit): use new neogit apis for highlight and repo root 2026-02-25 10:22:33 -05:00