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:
@@ -41,8 +41,7 @@
|
||||
:when (fboundp 'ruby-ts-mode) ; 29.1+ only
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'ruby-mode 'ruby-ts-mode
|
||||
'((ruby :url "https://github.com/tree-sitter/tree-sitter-ruby")))
|
||||
(set-tree-sitter! 'ruby-mode 'ruby-ts-mode 'ruby)
|
||||
:config
|
||||
(set-electric! 'ruby-ts-mode :words '("else" "end" "elsif"))
|
||||
(set-repl-handler! 'ruby-ts-mode #'inf-ruby)
|
||||
|
Reference in New Issue
Block a user