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

Customizing undotree_DiffCommand to "git diff --word-diff" is not colorized and not wrapped #133

Open
jiangtianli91 opened this issue Dec 14, 2021 · 3 comments

Comments

@jiangtianli91
Copy link

Hello,

I tried to customize the undotree_DiffCommand from "diff" to "git diff --word-diff." However, the output is not colorized and not wrapped. I wonder how can I solve it.

@mbbill
Copy link
Owner

mbbill commented Dec 14, 2021

You might need apply the syntax matching the git diff --word-diff format on the diff panel but I'm not sure if there's one.

@jiangtianli91
Copy link
Author

How about the softwrapping the diff window? It there a way to set it? I have to manually :set wrap each time now.

@mbbill
Copy link
Owner

mbbill commented Dec 16, 2021

the diff window is tiny, so wrapping lines might have downsides like squeezing everything else out of the window. You may try to append the :set wrap after this line https://github.com/mbbill/undotree/blob/master/autoload/undotree.vim#L1251

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