1
0
Fork 0

Require treesit

`treesit-available-p' is defined in the C source code, but `treesit-ready-p' is defined in `treesit.el'.
This commit is contained in:
Tom Willemse 2024-07-08 14:53:20 -07:00
parent 89f4dc6234
commit eeca5767e9
2 changed files with 2 additions and 0 deletions

View file

@ -101,6 +101,7 @@ for indentation."
;;;###autoload
(when (and (functionp 'treesit-available-p)
(treesit-available-p)
(require 'treesit)
(treesit-ready-p 'python))
(add-to-list 'major-mode-remap-alist '(python-mode . python-ts-mode))
(oni-python--enable-hooks 'python-ts-mode-hook))

View file

@ -54,6 +54,7 @@
;;;###autoload
(when (and (functionp 'treesit-available-p)
(treesit-available-p)
(require 'treesit)
(treesit-ready-p 'yaml))
(add-to-list 'major-mode-remap-alist '(yaml-mode . yaml-ts-mode))
(oni-yaml--enable-hooks 'yaml-ts-mode-hook))