fix yaml schemas

This commit is contained in:
Roel de Cort 2024-06-07 00:36:21 +02:00
parent 5f97c9bfb2
commit 677ee2cd46

View file

@ -17,22 +17,22 @@
yamlls = { yamlls = {
enable = true; enable = true;
extraOptions = { extraOptions = {
settings = '' settings = {
yaml = { yaml = {
schemas = { schemas = {
kubernetes = '*.yaml', kubernetes = "'*.yaml";
['http://json.schemastore.org/github-workflow'] = '.github/workflows/*', "http://json.schemastore.org/github-workflow" = ".github/workflows/*";
['http://json.schemastore.org/github-action'] = '.github/action.{yml,yaml}', "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/ansible-stable-2.9" = "roles/tasks/*.{yml,yaml}";
['http://json.schemastore.org/kustomization'] = 'kustomization.{yml,yaml}', "http://json.schemastore.org/kustomization" = "kustomization.{yml,yaml}";
['http://json.schemastore.org/ansible-playbook'] = '*play*.{yml,yaml}', "http://json.schemastore.org/ansible-playbook" = "*play*.{yml,yaml}";
['http://json.schemastore.org/chart'] = 'Chart.{yml,yaml}', "http://json.schemastore.org/chart" = "Chart.{yml,yaml}";
['https://json.schemastore.org/dependabot-v2'] = '.github/dependabot.{yml,yaml}', "https://json.schemastore.org/dependabot-v2" = ".github/dependabot.{yml,yaml}";
['https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json'] = '*docker-compose*.{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}', "https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json" = "*flow*.{yml,yaml}";
}, };
} };
''; };
}; };
}; };
}; };