Skip to content

Commit

Permalink
feat(nvim): add yamlls with some sane defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Jan 24, 2024
1 parent 123524d commit 4e7a037
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions home/neovim/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,25 @@ local servers = {
command = 'clippy',
},
},
yamlls = {
schemas = {
kubernetes = "*.yaml",
["http://json.schemastore.org/github-workflow"] = ".github/workflows/*",
["http://json.schemastore.org/github-action"] = ".github/action.{yml,yaml}",
["http://json.schemastore.org/ansible-stable-2.9"] = "roles/tasks/*.{yml,yaml}",
["http://json.schemastore.org/prettierrc"] = ".prettierrc.{yml,yaml}",
["http://json.schemastore.org/kustomization"] = "kustomization.{yml,yaml}",
["http://json.schemastore.org/ansible-playbook"] = "*play*.{yml,yaml}",
["http://json.schemastore.org/chart"] = "Chart.{yml,yaml}",
["https://json.schemastore.org/dependabot-v2"] = ".github/dependabot.{yml,yaml}",
["https://json.schemastore.org/gitlab-ci"] = "*gitlab-ci*.{yml,yaml}",
["https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json"] = "*api*.{yml,yaml}",
["https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json"] =
"*docker-compose*.{yml,yaml}",
["https://raw.githubusercontent.com/argoproj/argo-workflows/master/api/jsonschema/schema.json"] =
"*flow*.{yml,yaml}",
},
},
}

-- Setup neovim lua configuration
Expand Down

0 comments on commit 4e7a037

Please sign in to comment.