yamlls.lua 678 B

123456789101112131415161718192021222324252627282930
  1. local opts = {
  2. settings = {
  3. yaml = {
  4. hover = true,
  5. completion = true,
  6. validate = true,
  7. schemaStore = {
  8. enable = true,
  9. url = "https://www.schemastore.org/api/json/catalog.json",
  10. },
  11. schemas = {
  12. kubernetes = {
  13. "daemon.{yml,yaml}",
  14. "manager.{yml,yaml}",
  15. "restapi.{yml,yaml}",
  16. "role.{yml,yaml}",
  17. "role_binding.{yml,yaml}",
  18. "*onfigma*.{yml,yaml}",
  19. "*ngres*.{yml,yaml}",
  20. "*ecre*.{yml,yaml}",
  21. "*eployment*.{yml,yaml}",
  22. "*ervic*.{yml,yaml}",
  23. "kubectl-edit*.yaml",
  24. },
  25. },
  26. },
  27. },
  28. }
  29. return opts