udalov / kotlin-vim

Kotlin plugin for Vim. Featuring: syntax highlighting, basic indentation, Syntastic support
Apache License 2.0
630 stars 52 forks source link

Add fold to syntax regions #24

Closed aiya000 closed 2 years ago

aiya000 commented 5 years ago

Hi :D

I added folds to syntax/kotlin.vim.

This allows to set foldmethod=syntax on filetype=kotlin!

udalov commented 2 years ago

Sorry for the enormous delay! Thanks for the contribution. I've decided to keep only the folding based on braces, and do not fold the documentation comments, since that's what most of the language plugins which I've looked at seem to do...

Pushed in d8e5ccc. Thanks again!