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"; }; }; };