mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
fix(go): treesit: use v0.20.0 on Emacs <=29
Newer versions of tree-sitter/tree-sitter-go fail to load on Emacs <=29.
This commit is contained in:
parent
79a9418cba
commit
75506f090f
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@
|
|||
:mode ("/go\\.mod\\'" . go-mod-ts-mode-maybe)
|
||||
:init
|
||||
(set-tree-sitter! 'go-mode 'go-ts-mode
|
||||
'((go :url "https://github.com/tree-sitter/tree-sitter-go"
|
||||
:commit "12fe553fdaaa7449f764bc876fd777704d4fb752")))
|
||||
`((go :url "https://github.com/tree-sitter/tree-sitter-go"
|
||||
:rev ,(if (< (treesit-library-abi-version) 15) "v0.20.0" "v0.25.0"))))
|
||||
(set-tree-sitter! nil 'go-mod-ts-mode
|
||||
'((gomod :url "https://github.com/camdencheek/tree-sitter-go-mod"
|
||||
:commit "3b01edce2b9ea6766ca19328d1850e456fde3103")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue