summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2021-10-04 14:10:42 +0330
committerGitHub <[email protected]>2021-10-04 14:10:42 +0330
commitb1ae1e9bfb96fb8dc4b66a7fad17307236a2502e (patch)
tree8bb94e03ede045c058b97e68198b3d64274cac68
parent48472a1bf04aede946893146462e0d3a8ce51360 (diff)
feat: better kubernetes support (#1679)
-rw-r--r--lua/lsp/providers/yamlls.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/lsp/providers/yamlls.lua b/lua/lsp/providers/yamlls.lua
new file mode 100644
index 00000000..156a35b0
--- /dev/null
+++ b/lua/lsp/providers/yamlls.lua
@@ -0,0 +1,30 @@
+local opts = {
+ settings = {
+ yaml = {
+ hover = true,
+ completion = true,
+ validate = true,
+ schemaStore = {
+ 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",
+ },
+ },
+ },
+ },
+}
+
+return opts