extensions icon indicating copy to clipboard operation
extensions copied to clipboard

How to make tree-sitter blocks foldable? [Missing either documentation or functionality]

Open LaPingvino opened this issue 1 year ago • 1 comments

I am working on the Fountain extension, and I see that Zed supports folding parts of the code. What does it look for to add that fold arrow?

LaPingvino avatar Sep 03 '24 22:09 LaPingvino

Seems it basically just folds on indentation...

LaPingvino avatar Sep 07 '24 00:09 LaPingvino

Syntax aware folding is not yet supported in Zed. I plan to work on it soon as it's a feature I miss dearly as well. There is already an issue open on the Zed repo here if you'd like to track progress :)

probably-neb avatar Mar 12 '25 00:03 probably-neb