yamlls.lua 608 B

123456789101112131415161718192021222324
  1. local common = require("lsp.common-config")
  2. local opts = {
  3. capabilities = common.capabilities,
  4. flags = common.flags,
  5. on_attach = function(_, bufnr)
  6. common.keyAttach(bufnr)
  7. end,
  8. settings = {
  9. yaml = {
  10. format = {
  11. enable = true,
  12. },
  13. schemas = {
  14. ["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"] = "conf/**/*catalog*",
  15. ["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
  16. },
  17. },
  18. },
  19. }
  20. return {
  21. on_setup = function(server)
  22. server.setup(opts)
  23. end,
  24. }