I want to share a quick tip for configuring lazygit to respect macOS system appearance when using lazygit with delta pager.
In your lazygit config file (by default at ~/Library/Application Support/lazygit/config.yml), configure delta pager as follows:
git:
pagers:
- pager: delta --paging=never $(defaults read -g AppleInterfaceStyle 2>/dev/null | grep -q "Dark" && echo "--dark" || echo "--light")
This command checks macOS’s current appearance mode and automatically passes the appropriate --dark or --light flag to delta. The theme will update dynamically whenever you switch between light and dark mode—no restart needed!