jesseduffield / jesseduffield/lazygit

`delta` pager option `--detect-dark-light` not working.

Open
#4,550 7 comments 19 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**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

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

```
gitconfig
```ini
; ...
[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](https://github.com/user-attachments/assets/18f63513-9bff-4a10-9cf1-98cca5191be9)

**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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.