{"id":13862019,"url":"https://github.com/iquiw/lsp-yaml","last_synced_at":"2026-01-06T19:58:40.946Z","repository":{"id":137390013,"uuid":"129618286","full_name":"iquiw/lsp-yaml","owner":"iquiw","description":"[DEPRECATED] YAML support for lsp-mode (YAML support is included in lsp-mode)","archived":false,"fork":false,"pushed_at":"2019-04-09T14:51:30.000Z","size":25,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T06:04:38.161Z","etag":null,"topics":["emacs","language-server-protocol","yaml"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iquiw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-04-15T14:29:48.000Z","updated_at":"2023-10-20T10:10:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f1538d1-6cc9-4e3f-856d-8eaadff4469a","html_url":"https://github.com/iquiw/lsp-yaml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Flsp-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Flsp-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Flsp-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Flsp-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iquiw","download_url":"https://codeload.github.com/iquiw/lsp-yaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225974269,"owners_count":17553917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","language-server-protocol","yaml"],"created_at":"2024-08-05T06:01:34.956Z","updated_at":"2026-01-06T19:58:40.903Z","avatar_url":"https://github.com/iquiw.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"# lsp-yaml\n\n[![CircleCI](https://circleci.com/gh/iquiw/lsp-yaml.svg?style=svg)](https://circleci.com/gh/iquiw/lsp-yaml)\n[![Coverage Status](https://coveralls.io/repos/github/iquiw/lsp-yaml/badge.svg?branch=master)](https://coveralls.io/github/iquiw/lsp-yaml?branch=master)\n\nYAML support for lsp-mode using [yaml-language-server](https://github.com/redhat-developer/yaml-language-server).\n\n## Setup\n\n### Prerequisite\n\nInstall yaml-language-server (\u003e= v0.4.0) by npm.\n\n``` console\n$ npm install -g yaml-language-server\n```\n\n### Dependency\n\n* [lsp-mode](https://github.com/emacs-lsp/lsp-mode)\n\n### Configuration\n\nTo enable lsp-yaml in yaml-mode buffer, with [use-package](https://github.com/jwiegley/use-package),\n\n``` emacs-lisp\n(use-package lsp-yaml\n  :after lsp\n  :config\n  (add-hook 'yaml-mode-hook #'lsp))\n```\n\n### Customization\n\n#### `lsp-yaml-format-enable`\n\nSpecify whether to enable YAML format feature.\n\nDefault is `nil`.\n\n#### `lsp-yaml-format-options`\n\nSpecify YAML format options as plist, alist or hash table.\nSpecified options are converted to JSON object under `yaml.format` and sent to the server as is.\n\nFor example,\n\n``` emacs-lisp\n(:singleQuote t :bracketSpacing :json-false :proseWrap \"preserve\")\n```\n\nwill be sent as\n\n``` json\n{\n  \"yaml\": {\n    \"format\": {\n      \"singleQuote\": true,\n      \"bracketSpacing\": false,\n      \"proseWrap\": \"preserve\"\n    }\n  }\n}\n```\n\nRefer to [Language Server Settings](https://github.com/redhat-developer/yaml-language-server#language-server-settings) of yaml-language-server for the detail.\n\nDefault is `nil`.\n\n#### `lsp-yaml-language-server-dir`\n\nDirectory where yaml-language-server is installed.\n\nDefault is yaml-language-server installed under global NPM prefix directory.\n\n#### `lsp-yaml-schemas`\n\nSchemas plist or alist that associates schema with glob patterns.\nThis can be also a hash table.\n\nFor example,\n\n``` emacs-lisp\n(setq lsp-yaml-schemas '(:kubernetes \"/*-k8s.yaml\"))\n```\n\nDefault is `nil`.\n\n#### `lsp-yaml-validate`\n\nSpecify whether to enable YAML validation feature.\n\nDefault is `t`.\n\n#### `lsp-yaml-hover`\n\nSpecify whether to enable hover feature.\n\nDefault is `t`.\n\n#### `lsp-yaml-completion`\n\nSpecify whether to enable YAML autocompletion feature.\n\nDefault is `t`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiquiw%2Flsp-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiquiw%2Flsp-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiquiw%2Flsp-yaml/lists"}