Replies: 1 comment
-
This is a work in progress but it's what I'm using right now: [[language]]
name = "yaml"
file-types = ["yaml", "yml"]
language-servers = [ "yaml-language-server" ]
auto-format = true
formatter = { command = "prettier", args = ["--parser", "yaml"] }
[language-server.yaml-language-server.config.yaml]
completion = true
validation = true
hover = true
## If I uncomment this I get errors
# [language-server.yaml-language-server.config.yaml.schemaStore]
# enable = true
[language-server.yaml-language-server.config.yaml.schemas]
kubernetes = [ "*deployment*.yaml",
"*service*.yaml",
"*configmap*.yaml",
"*secret*.yaml",
"*pod*.yaml",
"*namespace*.yaml",
"*ingress*.yaml"
]
"https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json" = [
"*kustomization.yaml",
"*kustomize.yaml"
]
"https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json" = [
"*workflow*.yaml",
"*template*.yaml"
] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, I'm currently using one schema (for Kubernetes) for the Yaml language, as described here.
I would like to know if I can add other schemas, like, a schema for gitlab-ci, another one for docker-compose, and so on.
My configuration now is:
Beta Was this translation helpful? Give feedback.
All reactions