I want to share a quick tip for configuring Lazygit to respect macOS system appearance when using Lazygit with Delta custom 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.