]> git.eshelyaron.com Git - emacs.git/commit
Update and enable treesit-imenu function in python.el
authorYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 02:41:17 +0000 (19:41 -0700)
committerYuan Fu <casouri@gmail.com>
Sun, 25 Sep 2022 04:11:30 +0000 (21:11 -0700)
commit795e01ac248d389a581589b13a02465a2f99202f
tree8ba12d103784a17b37df98bd41f7d71483f5d008
parentf071e61d106e6f3c17b660e3aa1a5b7890ea5d41
Update and enable treesit-imenu function in python.el

* lisp/progmodes/python.el (python--treesit-settings): Add docstring.
(python--imenu-treesit-create-index-1): Rewrite with
treesit-induce-sparse-tree.
(python-imenu-treesit-create-index): Move main body to
python--imenu-treesit-create-index-1.
(python-imenu-treesit-create-flat-index): Fix typo.
(python-mode): Enable treesit-imenu.  Also fix indentation for
which-func code.
lisp/progmodes/python.el