Toggle quote (12 lines)
> On Oct 21, 2023, at 7:16 AM, Augusto Stoffel <arstoffel@gmail.com> wrote:
>
> The docstring of treesit-font-lock-level says:
>
> Level 1 usually contains only comments and definitions.
>
> As a user of minimal fontification, I don't find this very appealing.
> IMO, the lowest fontification level should allow distinguishing code
> from non-code, and therefore fontify comments and strings, and nothing
> else.
That’s a fair point, and I don’t have strong opinions of what minimal level of font-lock should include. The default value is derived from my observation of the (few) existing major modes that support font-lock levels.
Since this isn’t a technical issue but rather a subjective one, perhaps you can bring it up to emacs-devel and have a discussion there. If the consensus agrees with you, then we can change the default value.
If you just want to make it work for yourself, you can use treesit-font-lock-recompute-features to add/remove features you desire.
Yuan