From b17d681ef3ed6d23127437a88ca7b4078816cfc8 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 31 Mar 2025 12:31:14 +0200 Subject: [PATCH] Helix: yaml LSP config --- modules/hm/helix.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/hm/helix.nix b/modules/hm/helix.nix index 80ec449..bbf556e 100644 --- a/modules/hm/helix.nix +++ b/modules/hm/helix.nix @@ -39,7 +39,10 @@ chktex.onEdit = true; }; yaml-language-server.config.yaml = { + format.enable = true; + validation = true; keyOrdering = false; + schemaStore.enable = true; schemas = { "https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json" = "*gitlab-ci*.{yml,yaml}"; "https://json.schemastore.org/ansible-playbook" = "*play*.{yml,yaml}"; @@ -54,7 +57,7 @@ "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json" = "*api*.{yml,yaml}"; "https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json" = "*flow*.{yml,yaml}"; "https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json" = "*docker-compose*.{yml,yaml}"; - kubernetes = "*.yaml"; + kubernetes = "*.y{a,}ml"; }; }; };