You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Folding
The text was updated successfully, but these errors were encountered:
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…
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 orvim-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.
Folding
The text was updated successfully, but these errors were encountered: