dandavison / delta

A syntax-highlighting pager for git, diff, grep, and blame output
https://dandavison.github.io/delta/
MIT License
21.32k stars 358 forks source link

🐛 Dark theme doesn't seem to be working #1713

Open Radrahil opened 1 month ago

Radrahil commented 1 month ago

Delta doesn't seem to be respecting the manually set theme. I've tried this both on tmux and base kitty. gitconfig for reference

[user]
    name = Rahil Prakash
    email = 54015030+Radrahil@users.noreply.github.com

[init]
    defaultBranch = main

[pull]
    rebase = false

[core]
    editor = nvim
  pager = delta

[interactive]
    diffFilter = delta --color-only

[delta]
    dark = true
    navigate = true

[merge]
    conflictstyle = diff3

[diff]
    colorMoved = default
Radrahil commented 1 month ago

Oh wait, I figured it out. The BAT_THEME variable takes priority over that of dark = true, and the GitHub theme, which appears dark in bat, seems to be light in delta. Is this intended behaviour? I've worked around it by setting the theme in the bat config for now.

gitmpr commented 4 weeks ago

I also ran into this issue. Typically cli args take precedence over env var config settings so this should be fixed IMO