Browse Source

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

Jieru Mei 2 years ago
parent
commit
6bd46cb6f5
1 changed files with 1 additions and 15 deletions
  1. 1 15
      lua/lvim/lsp/providers/yamlls.lua

+ 1 - 15
lua/lvim/lsp/providers/yamlls.lua

@@ -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(),
     },
   },
 }