How to have git_diff look the same as terminal output #2471
Unanswered
liamhennebury
asked this question in
Q&A
Replies: 2 comments 19 replies
7 replies
|
I am having this problem since the version 2.29.0, I use difftastic (https://difftastic.wilfred.me.uk/), I have this option in my git config: Example of how the output looks in the terminal: This is how it looks using v2.28.0 with this config: require('snacks').setup {
--- other config
picker = {
previewers = {
git = {
native = true,
},
},
},
--- other config
}
I tried the latest version and tested all 3 possible values for |
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment







Uh oh!
There was an error while loading. Please reload this page.
Currently when I use git diff from the terminal I see:
I want the same experience when using the git_diff picker. I've tried a few things but here is what I see. It seems that the colors are stripped before sending it to the
diff-highlightpager command (for reference: git/2.51.2/share/git-core/contrib/diff-highlight/diff-highlight):Interestingly if I use
git_logI do see colour.Ideally using
diff = { style = "terminal" }would be enough to get the same experience as command line, I shouldn't need to specify cmd. Also when I don't addcmdit falls back to thefancyversion.All reactions