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

Plugin causes folds to not work properly. #119

Open
Petesta opened this issue Jan 3, 2016 · 3 comments
Open

Plugin causes folds to not work properly. #119

Petesta opened this issue Jan 3, 2016 · 3 comments

Comments

@Petesta
Copy link

Petesta commented Jan 3, 2016

I've been using the plugin since started using Scala and it is awesome, thanks for the work! Recently I started using Intellij for jumping into function definitions and noticed that the imports in the file are folded. So I've added a syn region foldImports start="import" end=/import.*\n^$/ fold keepend configuration to my .vimrc file to fold import statments. However I noticed that line of code did not work with vim-autoclose or vim-scala. When I removed the plugins the fold worked as expected. Here are examples of it not folding and folding. You can ignore the fold on the object in the first image.

Not folding.
epplo

Folding
screen shot 2016-01-03 at 2 17 59 pm

@derekwyatt
Copy link
Owner

I'm not sure what you're asking for here. You want imports to be folded by default?

@ches
Copy link
Collaborator

ches commented Jan 14, 2016

He added a custom line of config to get imports to fold automatically, but when vim-scala is active for scala filetype that custom syntax rule doesn't work. I can replicate that, but I'm not sure why it happens yet…

@Petesta
Copy link
Author

Petesta commented Jan 14, 2016

Is there a way to turn off the folds created by vim-scala such that I'm able to use the custom definition to fold on imports?

@derekwyatt That was unclear, basically what @ches mentions above. When vim-scala is active the syntax rule I defined doesn't work properly.

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

3 participants