• zygo_histo_morpheus@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    19 days ago

    Vim sort of already has this feature via set foldmethod=syntax. This doesn’t work exactly like the author suggests but you can also use set foldmethod=expr and then set foldexpr to a more complicated expression to only get nested function/method bodies, via tree sitter for example if you’re on neovim.