tmhedberg / SimpylFold

No-BS Python code folding for Vim
BSD 3-Clause "New" or "Revised" License
653 stars 57 forks source link

imports folding not working #98

Closed cutelittleturtle closed 6 years ago

cutelittleturtle commented 6 years ago

vim version 8.0.1366 installed spf13-vim

file type: python/python3

foldmethod=indent/marker/syntax

installed python plugin: yssource/python.vim, python_match.vim, pythoncomplete, neocomplete

tmhedberg commented 6 years ago

foldmethod=indent/marker/syntax

Your report isn't very clear. Are you saying that you set foldmethod to each of these 3 values? SimpylFold only works with foldmethod=expr.

cutelittleturtle commented 6 years ago

Sorry about that. I meant setting foldmethod to each of the options.

tmhedberg commented 6 years ago

Each of the options that you listed, or each option including expr?

It's possible that one of the other plugins you have installed is interfering somehow. What is the output of :verbose set foldmethod? foldexpr?.

JeffKwasha commented 6 years ago

This is the only location that tells users how to enable this plugin: set foldmethod=expr

The 'Usage' on the main page claims that it works without any configuration.
Usage should mention that it requires foldmethod=expr.

tmhedberg commented 6 years ago

The plugin does work without any configuration. foldmethod=expr is set automatically by SimpylFold in Python buffers. If that's not happening for you, then you must have some other script that is interfering with that or overriding the foldmethod option with a different value.

cutelittleturtle commented 6 years ago

I see. I will try it on a clean install of vim first I guess. Thanks for the help.