Skip to content
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

Diff command/pager settings #86

Open
B4rc1 opened this issue Nov 10, 2020 · 2 comments
Open

Diff command/pager settings #86

B4rc1 opened this issue Nov 10, 2020 · 2 comments

Comments

@B4rc1
Copy link

B4rc1 commented Nov 10, 2020

Is there any way to change the way diffs are displayed?
I already google around and searched the issues of this repo but found nothing.
I have delta setup in my .gitconifg like so:

[core]
  pager = delta

Is there any way to change the gv.vim diffs to also use delta as a pager?

This screenshot sums my problem up pretty well:
Left is gv.vim diffing the last commit and to the right is the output of git diff HEAD~1 which does the same.

gv vim_vs_pager

@princejoogie
Copy link

any update on this issue or if its feasible?

@junegunn
Copy link
Owner

junegunn commented Nov 3, 2022

What you're seeing is a fugitive buffer, not a terminal output. Since modern versions of Vim have built-in terminal emulator, we can use it to show the terminal output of git show OBJECT instead of relying on fugitive. But then we lose the ability to navigate the objects using fugitive maps (:help fugitive-navigation-maps) which I find invaluable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants