emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hideshow support for treesitter


From: Juri Linkov
Subject: Re: hideshow support for treesitter
Date: Wed, 04 Sep 2024 19:08:27 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

> Are there any plans to add treesitter support for hideshow, it seems easy
> enough to do and also very helpful, especially for langs that don't
> excessively use parens, such as python

Indeed, it's easy to do this.  You just need to override
hs-find-block-beginning-func, hs-find-next-block-func, etc.
with treesit functions like 'treesit-outline-search'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]