doomemacs/modules/lang/yaml/config.el
Jeetaditya Chatterjee fd7ac6710e feat(tree-sitter): add support for more languages
In this case
- lua
- erlang
- ess-r
- yaml
2023-02-21 20:51:33 -05:00

11 lines
358 B
EmacsLisp

;;; lang/yaml/config.el -*- lexical-binding: t; -*-
(use-package! yaml-mode
:mode "Procfile\\'"
:init
(when (modulep! +lsp)
(add-hook 'yaml-mode-local-vars-hook #'lsp! 'append))
(when (modulep! +tree-sitter)
(add-hook 'yaml-mode-local-vars-hook #'tree-sitter! 'append))
:config
(setq-hook! 'yaml-mode-hook tab-width yaml-indent-offset))