Skip to content

delta pager option --detect-dark-light not working. #4550

@andradei

Description

@andradei

Describe the bug
Using delta as a pager, it will default to dark theme unless using delta --light,
and event --detect-dark-light always is ignored. Also, delta auto-detects dark/light terminal colors by default and omitting --light/--dark from lazygit config.yml still defaults to dark theme pager.

To Reproduce

lazygit/config.yml

gui:
  nerdFontsVersion: "3"
git:
  paging:
    colorArg: always
    pager: delta --detect-dark-light always --paging never

gitconfig

; ...
[delta]
    navigate = true
    line-numbers = true
    side-by-side = true
    whitespace-error-style = 22 reverse
    ; could also have `detect-dark-light = always` and lazygit is not picking it

Expected behavior
lazygit uses the delta behavior of auto-detecting dark/light theme.

Screenshots

Notice dark theme on the pager area of lazygit

Image

Version info:

❯ lazygit --version
commit=v0.50.0, build date=2025-05-04T07:59:01Z, build source=binaryRelease, version=0.50.0, os=linux, arch=amd64, git version=2.49.0
_Run `git --version` and paste the result here_

❯ git version
git version 2.49.0

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