6 ms·
https://github.com/zenozeng/yafolding.el https://github.com/zenozeng/yafolding.el has been around for at least a decade -- and that is basically helper code on
by hprotagonist 2y ago
https://github.com/zenozeng/yafolding.el https://github.com/zenozeng/yafolding.el
has been around for at least a decade -- and that is basically helper code on top of functionality that's been available for longer than a fair few people reading this have been alive.
- lmz 2y agoFrom the linked post: > First, only method bodies are folded. This is a syntactic check — we are not folding the second level.
- hprotagonist 2y agoi’m also entirely sure you could do this “properly” with tree sitter and some small fiddling edit: by way of https://github.com/mickeynp/combobulate/issues/27 https://github.com/mickeynp/combobulate/issues/27, it's been done: https://github.com/emacs-tree-sitter/ts-fold https://github.com/emacs-tree-sitter/ts-fold