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

How to use enhanced diffs in fugitive? #2356

Closed
jclsn opened this issue Nov 11, 2024 · 4 comments
Closed

How to use enhanced diffs in fugitive? #2356

jclsn opened this issue Nov 11, 2024 · 4 comments

Comments

@jclsn
Copy link

jclsn commented Nov 11, 2024

I just discovered the enhanced diffs plugin https://github.com/chrisbra/vim-diff-enhanced. The diffs look much nicer, but fugitive seems to user its own syntax highlighting. Is there a way to use this in fugitive? Haven't found anything related in the docs.

@tpope
Copy link
Owner

tpope commented Nov 12, 2024

As I read the docs, you can call :EnhancedDiff in any diff buffer. So with Fugitive, you'd call :Gdiffsplit, then :EnhancedDiff. See also the update in the README that this can now be achieved with a native Vim option.

@tpope tpope closed this as completed Nov 12, 2024
@jclsn
Copy link
Author

jclsn commented Nov 12, 2024

Thanks, that actually works by default. I mostly use :Gclog though and there the diff looks different. Is it possible to use the same highlighting there?

@tpope
Copy link
Owner

tpope commented Nov 13, 2024

That's just a plain text diff with syntax highlighting, unrelated to Vim's diffing features.

@jclsn
Copy link
Author

jclsn commented Nov 13, 2024

Alright, thanks for clearing that up!

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

2 participants