chore(neovim): rework yaml lsp configurations
This commit is contained in:
parent
50ce6cfdec
commit
e7732df16a
1 changed files with 15 additions and 13 deletions
|
@ -19,14 +19,14 @@ local schemas = {}
|
||||||
|
|
||||||
local kubernetes = "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/v1.29.6-standalone-strict/all.json"
|
local kubernetes = "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/v1.29.6-standalone-strict/all.json"
|
||||||
local flux2 = "https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/refs/heads/main/all.json"
|
local flux2 = "https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/refs/heads/main/all.json"
|
||||||
local gitlab = "https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json"
|
local gitlab_ci = "https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json"
|
||||||
local taskfile = "https://taskfile.dev/schema.json"
|
local taskfile = "https://taskfile.dev/schema.json"
|
||||||
local podmonitor = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/monitoring.coreos.com/podmonitor_v1.json"
|
local podmonitor = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/monitoring.coreos.com/podmonitor_v1.json"
|
||||||
local servicemonitor = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/monitoring.coreos.com/servicemonitor_v1.json"
|
local servicemonitor = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/monitoring.coreos.com/servicemonitor_v1.json"
|
||||||
local prometheus = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/monitoring.coreos.com/prometheus_v1.json"
|
local prometheus = "https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/monitoring.coreos.com/prometheus_v1.json"
|
||||||
local ingress = "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/v1.30.1/ingress-networking-v1.json"
|
local ingress = "https://raw.githubusercontent.com/yannh/kubernetes-json-schema/refs/heads/master/v1.30.1/ingress-networking-v1.json"
|
||||||
local lefthook = "https://json.schemastore.org/lefthook.json"
|
local lefthook = "https://raw.githubusercontent.com/evilmartians/lefthook/refs/heads/master/schema.json"
|
||||||
local github = "https://json.schemastore.org/github-workflow.json"
|
local github_workflow = "https://json.schemastore.org/github-workflow.json"
|
||||||
|
|
||||||
schemas[kubernetes] = {
|
schemas[kubernetes] = {
|
||||||
"templates/*deployment.yaml",
|
"templates/*deployment.yaml",
|
||||||
|
@ -131,13 +131,14 @@ lspconfig.tflint.setup{
|
||||||
local cfg = require("yaml-companion").setup({
|
local cfg = require("yaml-companion").setup({
|
||||||
schemas = {
|
schemas = {
|
||||||
{ name = "Flux2", uri = flux2 },
|
{ name = "Flux2", uri = flux2 },
|
||||||
{ name = "Gitlab", uri = gitlab },
|
{ name = "Gitlab", uri = gitlab_ci },
|
||||||
{ name = "Taskfile", uri = taskfile },
|
{ name = "Taskfile", uri = taskfile },
|
||||||
{ name = "PodMonitor", uri = podmonitor },
|
{ name = "PodMonitor", uri = podmonitor },
|
||||||
{ name = "ServiceMonitor", uri = servicemonitor },
|
{ name = "ServiceMonitor", uri = servicemonitor },
|
||||||
{ name = "Prometheus", uri = prometheus },
|
{ name = "Prometheus", uri = prometheus },
|
||||||
{ name = "Kubernetes", uri = kubernetes },
|
{ name = "Kubernetes", uri = kubernetes },
|
||||||
{ name = "Lefthook", uri = lefthook },
|
{ name = "Lefthook", uri = lefthook },
|
||||||
|
{ name = "Github Workflow", uri = github_workflow},
|
||||||
},
|
},
|
||||||
lspconfig = {
|
lspconfig = {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
@ -149,32 +150,33 @@ local cfg = require("yaml-companion").setup({
|
||||||
"gotk-sync.yaml",
|
"gotk-sync.yaml",
|
||||||
"gotk-*.yaml",
|
"gotk-*.yaml",
|
||||||
},
|
},
|
||||||
[gitlab] = {
|
[gitlab_ci] = {
|
||||||
"ci/*.{yaml,yml}",
|
"ci/*.{yaml,yml}",
|
||||||
".gitlab/**/*.{yaml,yml}",
|
".gitlab/**/*.{yaml,yml}",
|
||||||
".gitlab-ci.{yaml,yml}",
|
".gitlab-ci.{yaml,yml}",
|
||||||
},
|
},
|
||||||
[taskfile] = {
|
[taskfile] = {
|
||||||
"**/Taskfile*.{yaml,yml}",
|
"Taskfile*.{yaml,yml}",
|
||||||
|
"taskfile*.{yaml,yml}",
|
||||||
"taskfiles/**/*.{yaml,yml}",
|
"taskfiles/**/*.{yaml,yml}",
|
||||||
},
|
},
|
||||||
[podmonitor] = {
|
[podmonitor] = {
|
||||||
"*podmonitor*.{yaml,yml}"
|
"*podmonitor*.{yaml,yml}",
|
||||||
},
|
},
|
||||||
[servicemonitor] = {
|
[servicemonitor] = {
|
||||||
"*servicemonitor*.{yaml,yml}"
|
"*servicemonitor*.{yaml,yml}",
|
||||||
},
|
},
|
||||||
[prometheus] = {
|
[prometheus] = {
|
||||||
"*prometheus*.{yaml,yml}"
|
"*prometheus*.{yaml,yml}",
|
||||||
},
|
},
|
||||||
[ingress] = {
|
[ingress] = {
|
||||||
"*ingress*.{yaml,yml}"
|
"*ingress*.{yaml,yml}",
|
||||||
},
|
},
|
||||||
[lefthook] = {
|
[lefthook] = {
|
||||||
"**/lefthook.*"
|
"lefthook.{yaml,yml}",
|
||||||
},
|
},
|
||||||
[github] = {
|
[github_workflow] = {
|
||||||
".github/workflow/**/*.{yaml,yml}"
|
".github/workflow/**/*.{yaml,yml}",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue