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

Ability to not fold function names and docstrings #114

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Siddarth-Raghuvanshi
Copy link

I wanted the ability to see function names not be incorporated into the fold, similar to (Issue: folds the function names too? #108) and also I saw that a lot of people wanted the ability to stop Docstrings from being folded (Issue: Option to start definition fold after docstring #84). So I added both of those.

I just started using Vim about a week ago, so I wasn't able to find out how to change the default value of the variables to 0. I think that this should be done, otherwise when people run PlugUpdate or its equivalent, they will need to change their .vimrc.

Thanks for Plugin btw, I absolutely love it, It's way better than the shitty folding that Atom had.

Added two variables which allow users not to fold function names (à la foldmethod=indent) and also allow the docstrings not to be folded. There are a couple of considerations I should put into the README, which are both new variables need default values, and also if you want to use unfold_docstring, unfold_function name should also be set to enable.
Added the new variables and the issues of the unfold_docstring variable.
@enriquetasa
Copy link

Fantastic plugin to use, this feature is something I would appreciate. Thanks.


To work properly, it needs `SimpylFold_fold_docstring` to be set to the
default value `1` to find the docstring starting location. In addition,
`SimpylFold_fold_docstring` overrides the affect of

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`SimpylFold_fold_docstring` overrides the affect of
`SimpylFold_fold_docstring` overrides the effect of

Typo

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.

3 participants