Add :lang yaml module
Removes yaml-mode from :lang data and adds LSP support (#2502). Closes #2502 Co-authored-by: Seong Yong-ju <sei40kr@gmail.com>
This commit is contained in:
parent
b151abfd34
commit
4a8c4815f1
7 changed files with 53 additions and 4 deletions
9
modules/lang/yaml/config.el
Normal file
9
modules/lang/yaml/config.el
Normal file
|
@ -0,0 +1,9 @@
|
|||
;;; lang/yaml/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! yaml-mode
|
||||
:hook "Procfile\\'"
|
||||
:init
|
||||
(when (featurep! +lsp)
|
||||
(add-hook 'yaml-mode-local-vars-hook #'lsp!))
|
||||
:config
|
||||
(setq-hook! 'yaml-mode-hook tab-width yaml-indent-offset))
|
Loading…
Add table
Add a link
Reference in a new issue