refactor(tree-sitter): centralize grammar config & hacks

Easier to track and maintain.
This commit is contained in:
Henrik Lissner
2025-08-27 00:35:39 +02:00
parent 6009c2b838
commit 3b58741522
18 changed files with 85 additions and 142 deletions

View File

@@ -30,9 +30,4 @@
:init
(set-tree-sitter! 'janet-mode 'janet-ts-mode
`(janet-simple :url "https://github.com/sogaiu/tree-sitter-janet-simple"
:cc ,(if (featurep :system 'windows) "gcc.exe")))
:config
;; HACK: These entries are inserted twice by this package, so remove them so
;; this module can be the single source of truth.
(cl-callf2 rassq-delete-all 'janet-ts-mode auto-mode-alist)
(cl-callf2 rassq-delete-all 'janet-ts-mode interpreter-mode-alist))
:cc ,(if (featurep :system 'windows) "gcc.exe"))))