[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: outline-minor-mode integration into the new treesitter based major m
From: |
Theodor Thornhill |
Subject: |
Re: outline-minor-mode integration into the new treesitter based major modes |
Date: |
Fri, 23 Dec 2022 09:38:00 +0100 |
Yilkal Argaw <yilkalargawworkneh@gmail.com> writes:
> Awesome, thanks!
>
> On Fri, Dec 23, 2022 at 7:04 AM Juri Linkov <juri@linkov.net> wrote:
>
>> > I was experimenting with implementing a treesitter based mode for VHDL
>> and
>> > I wanted to have a proper folding mechanism for the mode. Since I like
>> > outline for folding I was wondering if there is a way to integrate it
>> with
>> > the syntax parsing. Asking here if it can be done and how I might go
>> about
>> > doing it?
>>
>> That would be great. And now this is possible to do by using the new
>> function 'outline-search-function'. You can set it to a function
>> that uses treesitter to find the next outlines.
>>
Yeah! I made an experiment some time ago, and IIRC it wasn't really
that involved. It'll be a nice addition, IMO :)
Theo