feat(neovim): install stuff about Terraform

This commit is contained in:
Yorick Barbanneau 2024-09-06 16:28:14 +02:00
parent 491c67e56b
commit 5994859096
2 changed files with 37 additions and 3 deletions

View file

@ -2,6 +2,21 @@ local lspconfig = require('lspconfig')
lspconfig.bashls.setup {}
lspconfig.clangd.setup {}
lspconfig.helm_ls.setup{
settings = {
['helm-ls'] = {
logLevel = "info",
valuesFiles = {
mainValuesFile = "values.yaml",
lintOverlayValuesFile = "values.lint.yaml",
additionalValuesFilesGlobPattern = "values*.yaml"
}
},
yamlls = {
enabled = false,
}
}
}
lspconfig.lua_ls.setup {
single_file_support = true,
flags = {
@ -14,14 +29,25 @@ lspconfig.pylsp.setup {
settings = {
pylsp = {
plugins = {
pylint = {
pylint = {
enabled = true
}
}
}
}
}
lspconfig.yamlls.setup{}
lspconfig.terraformls.setup{}
lspconfig.tflint.setup{}
lspconfig.yamlls.setup{
settings = {
yaml = {
schemas = {
["https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.30.0/all.json"] = {"k8s/**/*.yaml", "cluster/**/*.yaml",},
["https://taskfile.dev/schema.json"] = {"**/Taskfile.*", "**/taskfile.*",},
},
},
},
}
vim.api.nvim_create_autocmd('LspAttach', {
desc = 'LSP actions',