From 79a84f600e749e2496748c5d609a60a5cf2227c1 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Thu, 2 Nov 2023 21:40:33 +0100 Subject: [PATCH] Helix: add advanced yaml support --- modules/hm/helix.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/hm/helix.nix b/modules/hm/helix.nix index a971c5c..f5acf66 100644 --- a/modules/hm/helix.nix +++ b/modules/hm/helix.nix @@ -28,6 +28,23 @@ # chktex.onOpenAndSave = true; chktex.onEdit = true; }; + yaml-language-server.config.yaml = { + schemas = { + kubernetes = "*.yaml"; + "http://json.schemastore.org/github-workflow" = ".github/workflows/*"; + "http://json.schemastore.org/github-action" = ".github/action.{yml,yaml}"; + "http://json.schemastore.org/ansible-stable-2.9" = "roles/tasks/*.{yml,yaml}"; + "http://json.schemastore.org/prettierrc" = ".prettierrc.{yml,yaml}"; + "http://json.schemastore.org/kustomization" = "kustomization.{yml,yaml}"; + "http://json.schemastore.org/ansible-playbook" = "*play*.{yml,yaml}"; + "http://json.schemastore.org/chart" = "Chart.{yml,yaml}"; + "https://json.schemastore.org/dependabot-v2" = ".github/dependabot.{yml,yaml}"; + "https://json.schemastore.org/gitlab-ci" = "*gitlab-ci*.{yml,yaml}"; + "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json" = "*api*.{yml,yaml}"; + "https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json" = "*docker-compose*.{yml,yaml}"; + "https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json" = "*flow*.{yml,yaml}"; + }; + }; }; settings = { theme = "nightfox";