Skip to content

Set foldmethod=diff when doing diff.#2014

Merged
lervag merged 1 commit intolervag:masterfrom
jaekyeom:fix_folding_for_diff
Apr 4, 2021
Merged

Set foldmethod=diff when doing diff.#2014
lervag merged 1 commit intolervag:masterfrom
jaekyeom:fix_folding_for_diff

Conversation

@jaekyeom
Copy link
Copy Markdown
Contributor

@jaekyeom jaekyeom commented Apr 3, 2021

Thanks for this great project! I find vimtex very helpful for my work.
Currently, when g:vimtex_fold_manual=1, vimtex enforces folding based on the content of the tex file even in the diff mode.
This PR changes it by setting foldmethod=diff during diff-ing, which I think is a more plausible and convenient behavior.
Please consider merging it.

@lervag
Copy link
Copy Markdown
Owner

lervag commented Apr 4, 2021

I agree, this does look sensible.

@lervag lervag merged commit af3162e into lervag:master Apr 4, 2021
@lervag
Copy link
Copy Markdown
Owner

lervag commented Apr 4, 2021

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants