Files
doomemacs/modules/lang/yaml/config.el
Henrik Lissner 3b58741522 refactor(tree-sitter): centralize grammar config & hacks
Easier to track and maintain.
2025-08-27 16:57:28 +02:00

19 lines
514 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
:when (modulep! +tree-sitter)
:when (fboundp 'yaml-ts-mode) ; 29.1+ only
:init
(set-tree-sitter! 'yaml-mode 'yaml-ts-mode 'yaml)
:config
(when (modulep! +lsp)
(add-hook 'yaml-ts-mode-local-vars-hook #'lsp! 'append)))