mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-04 15:03:42 -05:00
fix(javascript): treesit: use javascript@v0.23.0 & jsdoc@v0.23.2 on <=29
Newer versions of these grammars fail to load on Emacs <=29.
This commit is contained in:
@@ -57,12 +57,10 @@
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'js-mode 'js-ts-mode
|
||||
'((javascript :url "https://github.com/tree-sitter/tree-sitter-javascript"
|
||||
:rev "v0.23.0"
|
||||
:commit "108b2d4d17a04356a340aea809e4dd5b801eb40d")
|
||||
`((javascript :url "https://github.com/tree-sitter/tree-sitter-javascript"
|
||||
:rev ,(if (< (treesit-library-abi-version) 15) "v0.23.0" "v0.25.0"))
|
||||
(jsdoc :url "https://github.com/tree-sitter/tree-sitter-jsdoc"
|
||||
:rev "v0.23.0"
|
||||
:commit "b253abf68a73217b7a52c0ec254f4b6a7bb86665")))
|
||||
:rev "v0.23.2")))
|
||||
:config
|
||||
(+javascript-common-config 'js-ts-mode))
|
||||
|
||||
|
Reference in New Issue
Block a user