Skip to content

Folds #420

Answered by max397574
jghauser asked this question in Q&A
Folds #420
Apr 4, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

folding should work with treesitter like this:

opt.foldmethod = "expr" -- use treesitter for folding
opt.foldexpr = "nvim_treesitter#foldexpr()"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vhyrro
Comment options

@jghauser
Comment options

Answer selected by jghauser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants