talira

YAML Language Server

YAML validation, completion and hover over the Language Server Protocol

open sourceMITfree

YAML Language Server is Red Hat's language server for YAML files: over the Language Server Protocol it validates YAML, completes keys and values, shows hover documentation, formats documents and lists document symbols, driven by JSON Schema (draft-04, draft-07, 2019-09 and 2020-12) associated through a modeline, a $schema property, settings or the SchemaStore catalog, and validates Kubernetes manifests and well-known custom resources. It defaults to YAML 1.2 with a 1.1 setting for older files. It is published on npm and used by Red Hat's YAML extension for VS Code, Eclipse Che, Emacs' lsp-mode, vim-lsp, Sublime Text's LSP-yaml, monaco-yaml and Kate.

Problems it solves

  • get autocomplete for my Kubernetes YAML files in my editor
  • validate a YAML config file against a JSON Schema as I type
  • catch YAML syntax errors in Neovim or Emacs

Features

  • YAML validation against JSON Schema
  • schema-based completion and hover
  • formatting
  • document symbols
  • SchemaStore and Kubernetes CRD schemas
  • custom tags

Alternatives

The same job

These do what YAML Language Server does.

  1. Pyright Static type checker for Python

Compare YAML Language Server with the top 3