feat(nvim): add yamlls

This commit is contained in:
max_richter 2022-10-31 14:00:32 +01:00
parent 0309b19aa1
commit 7bf1d29cd6

View File

@ -178,6 +178,22 @@ lsp.gopls.setup {
on_attach = on_attach on_attach = on_attach
} }
lsp.yamlls.setup({
capabilities = capabilities,
on_attach = on_attach,
settings = {
yaml = {
schemas = {
["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"] = "conf/**/*catalog*",
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
["https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/traefik-v2-file-provider.json"] = "rules.yml",
["https://github.com/SchemaStore/schemastore/blob/master/src/schemas/json/traefik-v2.json"] = "traefik.yml"
}
}
}
})
lsp.ltex.setup({ lsp.ltex.setup({
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,