... is the best. But you need to set it up right.
- Linux:
~/.config/lazygit/config.yml
- MacOS:
~/Library/Application Support/lazygit/config.yml
- Windows:
%LOCALAPPDATA%\lazygit\config.yml
Instead of getting git diffs, you can get colorful side by sides with git-delta
:
# /home/.config/lazygit/config.yml
# alternatively, can get to it inthe first (#1) square in lazygit by pressing 'e' (for edit)
gui:
# stuff relating to the UI
theme:
activeBorderColor:
- yellow
- bold
inactiveBorderColor:
- grey
git:
paging:
colorArg: always
pager: delta --dark --paging=never -s
os:
editPreset: "nvim"
You load it up with git-delta
config'd as a pager and you're good to go
# ~/.gitconfig
[core]
pager = delta
side-by-side = true
[interactive]
diffFilter = delta --color-only --features=interactive
[merge]
conflictstyle = zdiff3
[pager]
blame = delta
[diff]
colorMoved = default
[delta]
features = decorations
navigate = true
hyperlinks = true
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax