mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(cc): treesit: use v0.23.6 c grammar on Emacs <=29
Newer versions of tree-sitter/tree-sitter-c fail to load on Emacs <=29.
This commit is contained in:
parent
d01ff65299
commit
08bde91cef
1 changed files with 4 additions and 2 deletions
|
|
@ -30,9 +30,11 @@ This is ignored by ccls.")
|
|||
:init
|
||||
(when (modulep! +tree-sitter)
|
||||
(set-tree-sitter! 'c-mode 'c-ts-mode
|
||||
'((c :url "https://github.com/tree-sitter/tree-sitter-c")))
|
||||
`((c :url "https://github.com/tree-sitter/tree-sitter-c"
|
||||
:rev ,(if (< (treesit-library-abi-version) 15) "v0.23.6" "v0.24.1"))))
|
||||
(set-tree-sitter! 'c++-mode 'c++-ts-mode
|
||||
'((cpp :url "https://github.com/tree-sitter/tree-sitter-cpp"))))
|
||||
'((cpp :url "https://github.com/tree-sitter/tree-sitter-cpp"
|
||||
:rev "v0.23.4"))))
|
||||
:config
|
||||
(set-docsets! '(c-mode c-ts-mode) "C")
|
||||
(set-docsets! '(c++-mode c++-ts-mode) "C++" "Boost")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue