wfxr / forgit

:zzz: A utility tool powered by fzf for using git interactively.
MIT License
4.4k stars 137 forks source link

Forgit doesn't respect delta themes #100

Closed ejolly closed 4 years ago

ejolly commented 4 years ago

Check list

Environment info

Problem / Steps to reproduce

Configuring delta to use a specific color theme works when using delta by itself or by invoking git commands directly (e.g. git diff), but I can't seem to get forgit to change the colors rendered in the fzf preview window no matter what I do.

It doesn't seem to pick up delta settings in ~/.gitconfig and I've even tried specifying options in my ~/.zshrc, e.g. export FORGIT_FZF_DEFAULT_OPTS= "--preview='delta --light'" or export FORGIT_LOG_FZF_OPTS= "--preview='delta --light'"

wfxr commented 4 years ago

forgit just reads core.pager in .gitconfig as its pager. I don't known why it does't work for you. Can you show your $forgit_pager here?

echo $forgit_pager
ejolly commented 4 years ago

Sorry closing this it was an error in my .gitconfig which I copied from from delta's README. It shows theme = '' in its example .gitconfig whereas the option has been renamed syntax-theme='' to match the command-line flag