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 correctly enable folding? #430

Open
hupfdule opened this issue May 17, 2022 · 2 comments
Open

How to correctly enable folding? #430

hupfdule opened this issue May 17, 2022 · 2 comments

Comments

@hupfdule
Copy link

Based on the documentation, folding should be enabled by default (except for YAML frontmatter and codeblocks that need a certain setting).
However, nothing is folded by default. All settings indicate that it should, but there are no folds. Event trying to manually close a fold doesn't work, since no folds are defined.

After playing around much and reading the source code I found that after calling pandoc#folding#Init folding will be enabled. But the whole documentation doesn't mention that method. It is not even called anywhere in the vim-pandoc codebase.

So what is the correct method to enable folding?

This should actually be mentioned in the documentation.

@hupfdule
Copy link
Author

Ah, I noticed that this is a conflict with the markdown plugin from plasticboy.

That's a bit unfortunate as plasticboys plugin provides some additional functionality that would enhance vim-pandoc.

@alerque
Copy link
Member

alerque commented May 17, 2022

I'd be happy to accept contributions on either side (I am a maintainer of both) that make these plugins play together nicer. In this case I'm guessing more granular config options for each so you could mix and match features would probably do the trick. I don't have time to dig into it myself right now but if PRs come through I'll try to facilitate them.

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