junyi-hou / tree-sitter-fold

Code-folding using tree-sitter
8 stars 4 forks source link

How to add additional items to ts-fold-range-alist for ess-r-mode #6

Open pcinereus opened 1 year ago

pcinereus commented 1 year ago

Great work BTW. This question will reflect my lack of proper emacs lisp, but is there an easy way to add an additional item to the ts-fold-range-alist. Essentially, in addition to folding based on brace_list, I would like to try have folding for paren_list.

Thanks

junyi-hou commented 1 year ago

Thanks. I’m on vacation and do not have access to laptop now. Will work on it when I get back. In the meantime, feel free to dig into the code (and readme) if you like.Sent from my iPhoneOn Nov 22, 2023, at 5:40 AM, Murray Logan @.***> wrote: Great work BTW. This question will reflect my lack of proper emacs lisp, but is there an easy way to add an additional item to the ts-fold-range-alist. Essentially, in addition to folding based on brace_list, I would like to try have folding for paren_list. Thanks

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>