spacemacs/layers/+lang/yaml
Dan Kessler 83d687534c tidy read syntax for anonymous functions
First, change read syntax for anonymous functions currently written '(lambda to
instead just be (lambda; otherwise this raises a warning.

Next, while we're at it, change all instances of #'(lambda to just (lambda,
since the two are equivalent and the latter is more concise (excepting anything
in core/libs or in /local/ subdirs of layers)

https://www.gnu.org/software/emacs/manual/html_node/elisp/Anonymous-Functions.html#index-_0023_0027-syntax
2022-05-11 19:24:54 +02:00
..
config.el Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
layers.el Apply GPLv3 terms explicitly to all elisp files 2021-03-25 22:59:32 -04:00
packages.el tidy read syntax for anonymous functions 2022-05-11 19:24:54 +02:00
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 (requires yamllint)
  • yaml-jsyaml (requires the node-js package js-yaml)
  • or yaml-ruby (requires that ruby is installed on your system)

The flycheck YAML documentation can be found at the flycheck website.