mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-06 15:13:33 -05:00
fix(rust): treesit: use v0.23.2 on Emacs <=29
v0.24.0 errors out on <=29. Fix: #8473
This commit is contained in:
@@ -50,10 +50,7 @@
|
||||
(when (modulep! +tree-sitter)
|
||||
(set-tree-sitter! 'rust-mode 'rustic-mode
|
||||
`((rust :url "https://github.com/tree-sitter/tree-sitter-rust"
|
||||
:commit ,(if (and (treesit-available-p)
|
||||
(< (treesit-library-abi-version) 15))
|
||||
"1f63b33efee17e833e0ea29266dd3d713e27e321"
|
||||
"18b0515fca567f5a10aee9978c6d2640e878671a")))))
|
||||
:rev ,(if (< (treesit-library-abi-version) 15) "v0.23.2" "v0.24.0")))))
|
||||
|
||||
;; HACK Certainly, `rustic-babel' does this, but the package (and many other
|
||||
;; rustic packages) must be loaded in order for them to take effect. To lazy
|
||||
|
Reference in New Issue
Block a user