Skip to content

[Question] Folds #23

@FedeAbella

Description

@FedeAbella

I've just set up nvim so that treesitter takes care of folds:

vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"

This works fine on other languages (i.e.: lua), but on apex it will just fold the entire file, not caring for classes, methods, or anything. Is this something that's missing from the apex parser?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions