feat(python): add treesit support

This commit is contained in:
Henrik Lissner
2025-05-07 18:15:51 -04:00
parent f2678b3ea2
commit a372eba7cd
4 changed files with 47 additions and 20 deletions

View File

@ -7,7 +7,7 @@
;;;###autoload
(defun +python-pyenv-mode-set-auto-h ()
"Set pyenv-mode version from buffer-local variable."
(when (eq major-mode 'python-mode)
(when (memq major-mode '(python-mode python-ts-mode))
(when (not (local-variable-p '+pyenv--version))
(make-local-variable '+pyenv--version)
(setq +pyenv--version (+python-pyenv-read-version-from-file)))