yamlls.lua 697 B

123456789101112131415161718192021
  1. return {
  2. settings = {
  3. yaml = {
  4. schemaStore = {
  5. -- You must disable built-in schemaStore support if you want to use
  6. -- this plugin and its advanced options like `ignore`.
  7. enable = false,
  8. -- Avoid TypeError: Cannot read properties of undefined (reading 'length')
  9. url = "",
  10. },
  11. schemas = require("schemastore").yaml.schemas({
  12. -- additional schemas (not in the catalog)
  13. extra = {
  14. url = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/argoproj.io/application_v1alpha1.json",
  15. name = "Argo CD Application",
  16. fileMatch = "argocd-application.yaml",
  17. },
  18. }),
  19. },
  20. },
  21. }