Helix: yaml LSP config

This commit is contained in:
Filippo Berto 2025-03-31 12:31:14 +02:00
parent e9cbc2fa9c
commit b17d681ef3
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

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