Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
andradei opened this issue May 9, 2025 · 0 comments
Open

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

andradei opened this issue May 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@andradei
Copy link

andradei commented May 9, 2025

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
@andradei andradei added the bug Something isn't working label May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant