mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-10 15:33:36 -05:00
fix(:lang): missing grammar recipes
I removed the grammar recipes in3b58741
to avoid redundancy with the upstream recipes, but didn't realize that those upstream recipes weren't added until Emacs 31, so users on 30 and older would get errors when trying to install any missing grammars. This also establishes a hard dependency between :lang (php +tree-sitter) and :lang ({javascript,web} +tree-sitter). Amend:3b58741522
This commit is contained in:
@@ -5,13 +5,15 @@
|
||||
(modulep! :tools lsp))
|
||||
"This module requires (:tools lsp)")
|
||||
|
||||
(assert! (or (not (modulep! +tree-sitter))
|
||||
(modulep! :tools tree-sitter))
|
||||
"This module requires (:tools tree-sitter)")
|
||||
|
||||
(assert! (or (not (modulep! +tree-sitter))
|
||||
(fboundp 'php-ts-mode))
|
||||
"Can't find `php-ts-mode'; Emacs 30.1+ is required")
|
||||
(when (modulep! +tree-sitter)
|
||||
(assert! (modulep! :tools tree-sitter)
|
||||
"This module requires (:tools tree-sitter)")
|
||||
(assert! (fboundp 'php-ts-mode)
|
||||
"Can't find `php-ts-mode'; Emacs 30.1+ is required")
|
||||
(unless (modulep! :lang javascript +tree-sitter)
|
||||
(error! "(:lang (javascript +tree-sitter)) required, but not enabled"))
|
||||
(unless (modulep! :lang web +tree-sitter)
|
||||
(error! "(:lang (web +tree-sitter)) required, but not enabled")))
|
||||
|
||||
(unless (executable-find "php")
|
||||
(warn! "Couldn't find php in your PATH"))
|
||||
|
Reference in New Issue
Block a user