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:
@@ -59,16 +59,8 @@
|
||||
:when (fboundp 'elixir-ts-mode) ; 30.1+ only
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'elixir-mode 'elixir-ts-mode
|
||||
'((elixir :url "https://github.com/elixir-lang/tree-sitter-elixir"
|
||||
:rev "v0.3.3")
|
||||
(heex :url "https://github.com/phoenixframework/tree-sitter-heex"
|
||||
:rev "v0.7.0")))
|
||||
(set-tree-sitter! 'elixir-mode 'elixir-ts-mode '(elixir heex))
|
||||
:config
|
||||
;; HACK: Rely on `major-mode-remap-defaults' (and elixir-mode's autoloaded
|
||||
;; auto-mode-alist entries).
|
||||
(cl-callf2 rassq-delete-all 'elixir-ts-mode auto-mode-alist)
|
||||
|
||||
(+elixir-common-config 'elixir-ts-mode))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user