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:
parent
89f4dc6234
commit
eeca5767e9
2 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue