mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
refactor(tree-sitter): centralize grammar config & hacks
Easier to track and maintain.
This commit is contained in:
@@ -53,10 +53,7 @@
|
||||
:when (fboundp 'go-ts-mode) ; 31.1+ only
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'go-mode 'go-ts-mode
|
||||
'((go :url "https://github.com/tree-sitter/tree-sitter-go" :ref "v0.23.4")
|
||||
(gomod :url "https://github.com/camdencheek/tree-sitter-go-mod" :ref "v1.1.0")
|
||||
(gowork :url "https://github.com/omertuc/tree-sitter-go-work")))
|
||||
(set-tree-sitter! 'go-mode 'go-ts-mode '(go gomod gowork))
|
||||
:config
|
||||
(+go-common-config 'go-ts-mode))
|
||||
|
||||
|
Reference in New Issue
Block a user