feat(lang): yaml use schemastore (#3953)

This commit is contained in:
Jieru Mei 2023-04-06 21:55:09 -04:00 committed by GitHub
parent 0b13c9f6bc
commit 6bd46cb6f5
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,21 +8,7 @@ local opts = {
enable = true,
url = "https://www.schemastore.org/api/json/catalog.json",
},
schemas = {
kubernetes = {
"daemon.{yml,yaml}",
"manager.{yml,yaml}",
"restapi.{yml,yaml}",
"role.{yml,yaml}",
"role_binding.{yml,yaml}",
"*onfigma*.{yml,yaml}",
"*ngres*.{yml,yaml}",
"*ecre*.{yml,yaml}",
"*eployment*.{yml,yaml}",
"*ervic*.{yml,yaml}",
"kubectl-edit*.yaml",
},
},
schemas = require("schemastore").yaml.schemas(),
},
},
}