Variable: treesit-outline-predicate
treesit-outline-predicate is a buffer-local variable defined in
treesit.el.gz.
Documentation
Predicate used to find outline headings in the syntax tree.
The predicate can be a function, a regexp matching node type,
and more; see docstring of treesit-thing-settings.
It matches the nodes located on lines with outline headings.
Intended to be set by a major mode. When nil, the predicate
is constructed from the value of treesit-simple-imenu-settings
when a major mode sets it.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/treesit.el.gz
;;; Outline minor mode
(defvar-local treesit-outline-predicate nil
"Predicate used to find outline headings in the syntax tree.
The predicate can be a function, a regexp matching node type,
and more; see docstring of `treesit-thing-settings'.
It matches the nodes located on lines with outline headings.
Intended to be set by a major mode. When nil, the predicate
is constructed from the value of `treesit-simple-imenu-settings'
when a major mode sets it.")