pangloss/vim-javascript — Issue #38: Fold comments in with function
Author: jskulski
Created: 2012-01-18 05:57:08+00:00
State: open

I'm trying to get folds to include comments with the function fold, so that:

// Quick unction description
function() {
//...
}

/**
* Longer description here
*/
function() { ... }

are folded into

-+- function() { .... } | Longer description here... ------

I know how to set the foldtext, but I'm having trouble overriding the fold definition to include both. I'm new to vimscript and so I'm hunting and pecking on my fork to accomplish this. I haven't had any luck so far, so I thought I'd just post the question because it might be way easier than I think.

Thanks for the module!