mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-02 14:53:38 -05:00
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
21 lines
629 B
EmacsLisp
21 lines
629 B
EmacsLisp
;;; lang/yaml/config.el -*- lexical-binding: t; -*-
|
|
|
|
(use-package! yaml-mode
|
|
:mode "Procfile\\'"
|
|
:config
|
|
(when (modulep! +lsp)
|
|
(add-hook 'yaml-mode-local-vars-hook #'lsp! 'append))
|
|
(setq-hook! 'yaml-mode-hook tab-width yaml-indent-offset))
|
|
|
|
|
|
(use-package! yaml-ts-mode ; 29.1+ only
|
|
:when (modulep! +tree-sitter)
|
|
:defer t
|
|
:init
|
|
(set-tree-sitter! 'yaml-mode 'yaml-ts-mode
|
|
'((yaml :url "https://github.com/tree-sitter-grammars/tree-sitter-yaml"
|
|
:commit "b733d3f5f5005890f324333dd57e1f0badec5c87")))
|
|
:config
|
|
(when (modulep! +lsp)
|
|
(add-hook 'yaml-ts-mode-local-vars-hook #'lsp! 'append)))
|