It feels a bit like you’re using this forum as a replacement for reading the docs. If you look at codeFolding, which is a rather obvious place to look for something like this, you should immediately find the option you need.
It didn’t occur to me that these two behaviours would be handled by two extensions. Sorry, that’s a mistake on my side. I assumed foldGutter() was all there was and didn’t look further to find codeFolding(). Thank you.