Skip to content

Diff for files not working with .gitconfig #4918

@redoxahmii

Description

@redoxahmii

Describe the bug

Previously i was using :

git:
  paging:
     colorArg: always
    useConfig: true

Which on this recent commit was changed to either provide custom commands which if i pass like delta --diff-so-fancy it doesn't work resulting in an error.

Also I have my diff setup in my .gitconfig as follows :

[core]
  pager = delta

[delta]
    features = solarized-dark
    paging = never

[delta "solarized-dark"]
    dark = true
    file-style = omit
    hunk-header-decoration-style = omit
    hunk-header-file-style = magenta
    hunk-header-line-number-style = dim magenta
    hunk-header-style = file line-number syntax
    line-numbers = false
    minus-emph-style = bold red 52
    minus-empty-line-marker-style = normal "#3f0001"
    ; minus-non-emph-style = dim red
    ; minus-style = bold red
    whitespace-error-style = reverse red
    zero-style = dim syntax
    syntax-theme = Solarized (dark)

Which while it works with using simply git diff it doesn't work anymore even if i pass in the config.yml:

  paging:
    useExternalDiffGitConfig: true

So a little help regarding this would be splendid.

To Reproduce

Steps to reproduce the behavior:

  1. Install Lazygit
  2. Configure .gitconfig to what is provided above.

Expected behavior

To show the diff instead of failing

Screenshots

If applicable, add screenshots to help explain your problem.

Version info:

  • commit=v0.55.1, build date=2025-09-17T18:57:13Z, build source=binaryRelease, version=0.55.1, os=linux, arch=amd64, git version=2.51.0
  • git version 2.51.0

Additional context

Add any other context about the problem here.

Note

Please try updating to the latest version or manually building the latest master to see if the issue still occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions