Skip to content

YAML#

Server#

For more information about the LSP server, check yaml.

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETyamllsRET.

npm install -g yaml-language-server

Debugger: Not available#

Available configurations#

lsp-yaml-format-enable#

Default: t

Enable/disable default YAML formatter.


lsp-yaml-single-quote#

Default: nil

Use single quote instead of double quotes.


lsp-yaml-bracket-spacing#

Default: t

Print spaces between brackets in objects.


lsp-yaml-prose-wrap#

Default: preserve

Options for prose-wrap. Always: wrap prose if it exceeds the print width. Never: never wrap the prose. Preserve: wrap prose as-is.


lsp-yaml-print-width#

Default: 80

Specify the line length that the printer will wrap on.


lsp-yaml-validate#

Default: t

Enable/disable validation feature.


lsp-yaml-hover#

Default: t

Enable/disable hover feature.


lsp-yaml-completion#

Default: t

Enable/disable completion feature.


lsp-yaml-schemas#

Default: nil

Associate schemas to YAML files in a glob pattern.


lsp-yaml-schema-store-enable#

Default: t

Enable/disable JSON Schema store. When set to true, available YAML schemas will be automatically pulled from the store.


lsp-yaml-custom-tags#

Default: nil

Custom tags for the parser to use.


lsp-yaml-schema-store-uri#

Default: https://www.schemastore.org/api/json/catalog.json

URI of schema store that would be fetched to get the list of schemas.


lsp-yaml-schema-store-local-db#

Default: ~/.emacs.d/.cache/lsp/lsp-yaml-schemas.json

Cached databse of schema store.


lsp-yaml-server-command#

Default: (yaml-language-server --stdio)

Command to start yaml-languageserver.



Last update: April 15, 2021