mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-15 23:00:52 -08:00
feat(python): add treesit support
This commit is contained in:
parent
f2678b3ea2
commit
a372eba7cd
4 changed files with 47 additions and 20 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue