diff options
author | ngharo <root@ngha.ro> | 2023-12-29 17:46:10 -0600 |
---|---|---|
committer | ngharo <root@ngha.ro> | 2023-12-29 17:46:10 -0600 |
commit | 31474998d6935d48f678988c8a7a4fac7bb2ae72 (patch) | |
tree | c71114c23c31f888c0be1ec1b2efdab0d5ce6ca5 /after/plugin/lsp.lua | |
download | nvim-31474998d6935d48f678988c8a7a4fac7bb2ae72.tar.xz nvim-31474998d6935d48f678988c8a7a4fac7bb2ae72.zip |
Inititial commit
Diffstat (limited to 'after/plugin/lsp.lua')
-rw-r--r-- | after/plugin/lsp.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua new file mode 100644 index 0000000..bf6a29d --- /dev/null +++ b/after/plugin/lsp.lua @@ -0,0 +1,31 @@ +local lsp_zero = require('lsp-zero') + +lsp_zero.on_attach(function(client, bufnr) + -- see :help lsp-zero-keybindings + -- to learn the available actions + lsp_zero.default_keymaps({buffer = bufnr}) +end) + + +local lspconfig = require('lspconfig') +lspconfig.gopls.setup{} +lspconfig.terraformls.setup{} +lspconfig.yamlls.setup { + settings = { + yaml = { + kubernetes = "*.{yaml,yml}", + ["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}", + } + } +} |