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

feat(provider): marker provider #218

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LucasAVasco
Copy link

Add a provider that can fold generic markers. The default ones are:

  • '{{{' and '}}}' from vim

  • '#region' and '#endregion' from VS Code

You can change the markers with the global variable: vim.g.ufo_markers. This provider does not use the 'foldmarker' option because it is limited to only one marker pattern

By default, the provider only tracks markers inside comments to prevent accidental folding. You can enable the folding to markers outside of comments setting the global variable
vim.g.ufo_markers_only_comment to false

All folds queried from this provider will have the 'kind' attribute equal to 'ufo_marker'

Add a provider that can fold generic markers. The default ones are:

* '{{{' and '}}}' from vim

* '#region' and '#endregion' from VS Code

You can change the markers with the global variable:
`vim.g.ufo_markers`. This provider does not use the 'foldmarker' option
because it is limited to only one marker pattern

By default, the provider only tracks markers inside comments to
prevent accidental folding. You can enable the folding to markers
outside of comments setting the global variable
`vim.g.ufo_markers_only_comment` to false

All folds queried from this provider will have the 'kind' attribute
equal to 'ufo_marker'
@kevinhwang91
Copy link
Owner

Sorry, there is no time to review the code recently.

@LucasAVasco
Copy link
Author

No problem. I am also busy lately

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.

None yet

2 participants