.. | ||
config.el | ||
layers.el | ||
packages.el | ||
README.org |
YAML layer
Description
This layer provides support for the YAML file format.
Features:
- Syntax highlighting
- Syntax checking via flycheck
Install
Layer
To use this configuration layer, add it to your ~/.spacemacs
. You will need to
add yaml
to the existing dotspacemacs-configuration-layers
list in this
file.
LSP
To enable LSP, install yaml-language-server:
npm i -g yaml-language-server
And set the layer variable yaml-enable-lsp
to t
like shown below:
(setq-default dotspacemacs-configuration-layers
'((yaml :variables yaml-enable-lsp t)))
Syntax checking with flycheck
Flycheck checks YAML files with either:
yaml-yamllint
(requiresyamllint
)yaml-jsyaml
(requires thenode-js
packagejs-yaml
)- or
yaml-ruby
(requires thatruby
is installed on your system)
The flycheck YAML documentation can be found at the flycheck website.