Git Diff Workflow¶
This repo manages a small Git review stack instead of forcing a single tool to do everything:
deltais the default pager for normalgit diff,git show, and other CLI diff output.diffnavis a GitHub-style diff navigator with a file tree, useful when you want to move around larger patches quickly.gh-dashis the GitHub dashboard and review UI; its diff pager is configured to calldiffnav.lazygitstays focused on repo operations inside LazyVim, withdeltaconfigured as its custom pager.
Managed Config Files¶
This workflow is managed globally through these files:
~/.gitconfigkeepsdeltaas the default Git pager.~/.config/gh-dash/config.ymlsetspager.diff: "diffnav".~/.config/lazygit/config.ymluses LazyGit's currentgit.pagerssyntax withdelta.~/.config/bat/themes/tokyonight_night.tmThemeprovides the shared Tokyo Night theme used bybatpreviews.
Why Both delta and diffnav¶
delta is still the best default for everyday Git CLI output. It is fast, readable, and already fits git diff and LazyGit well.
diffnav solves a different problem: navigating large review diffs with a file tree and a GitHub-like layout. That makes it a better fit for gh-dash than replacing delta everywhere.
gh-dash + diffnav¶
gh-dash is installed as a gh extension and reads the global config at ~/.config/gh-dash/config.yml. This repo intentionally keeps that config minimal:
That gives gh-dash a better diff viewer without importing personalized sections, colors, or keybindings from other dotfiles.
Before using gh-dash, authenticate GitHub CLI once:
LazyGit + delta¶
LazyGit's current pager configuration uses git.pagers, not the older git.paging key:
This keeps LazyGit aligned with the existing delta-first CLI setup while avoiding the outdated config shape from the old issue thread.
Fonts and Theme¶
Both diffnav and gh-dash look better with a Nerd Font because their interfaces rely on icon glyphs. This repo already manages Hack Nerd Font on desktop profiles.
The bat Tokyo Night warning is fixed by managing the upstream tokyonight_night.tmTheme file directly and rebuilding the bat theme cache after apply.