mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-04 15:03:42 -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:
@@ -34,12 +34,15 @@ If the depth is 2, the first two directories are removed: net.lissner.game.")
|
||||
;;
|
||||
;;; Common packages
|
||||
|
||||
(use-package! java-ts-mode
|
||||
(use-package! java-ts-mode ; 29.1+ only
|
||||
:when (modulep! +tree-sitter)
|
||||
:when (fboundp 'java-ts-mode) ; 29.1+ only
|
||||
:defer t
|
||||
:init
|
||||
(set-tree-sitter! 'java-mode 'java-ts-mode '(java doxygen)))
|
||||
(set-tree-sitter! 'java-mode 'java-ts-mode
|
||||
'((java :url "https://github.com/tree-sitter/tree-sitter-java"
|
||||
:commit "94703d5a6bed02b98e438d7cad1136c01a60ba2c")
|
||||
(doxygen :url "https://github.com/tree-sitter-grammars/tree-sitter-doxygen"
|
||||
:commit "1e28054cb5be80d5febac082706225e42eff14e6"))))
|
||||
|
||||
|
||||
(use-package! android-mode
|
||||
|
Reference in New Issue
Block a user