Skip to content

Instantly share code, notes, and snippets.

@DougAnderson444
Last active April 23, 2025 17:42
Show Gist options
  • Save DougAnderson444/bb57a05a56d4853092d1af80077bb3fa to your computer and use it in GitHub Desktop.
Save DougAnderson444/bb57a05a56d4853092d1af80077bb3fa to your computer and use it in GitHub Desktop.
lazygit

Lazygit

... 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment