There are 2 styles of coding
function f() {
}
and
function f()
{
}
Geany supports first style with code folding
Secody style is not supportted well because when we hide body of function we see 2 lines instead one.
function ()
{....
instead
function () ...
It will be great if geany will support another style of folding
I don't think this feature request belongs to the CodeNav add-on, as you assigned it the first time, so I changed its category.