Function: python-imenu-treesit-create-flat-index
python-imenu-treesit-create-flat-index is a byte-compiled function
defined in python.el.gz.
Signature
(python-imenu-treesit-create-flat-index)
Documentation
Return flat outline of the current Python buffer for Imenu.
Change python-imenu-format-item-label-function,
python-imenu-format-parent-item-label-function,
python-imenu-format-parent-item-jump-label-function to
customize how labels are formatted.
Similar to python-imenu-create-flat-index but use
tree-sitter.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-imenu-treesit-create-flat-index ()
"Return flat outline of the current Python buffer for Imenu.
Change `python-imenu-format-item-label-function',
`python-imenu-format-parent-item-label-function',
`python-imenu-format-parent-item-jump-label-function' to
customize how labels are formatted.
Similar to `python-imenu-create-flat-index' but use
tree-sitter."
(python-imenu-create-flat-index
(python-imenu-treesit-create-index)))