feat(neovim): install stuff about Terraform
This commit is contained in:
parent
491c67e56b
commit
5994859096
2 changed files with 37 additions and 3 deletions
|
@ -28,13 +28,17 @@ in
|
|||
# LSP Servers
|
||||
clang-tools
|
||||
hadolint
|
||||
helm-ls
|
||||
lua-language-server
|
||||
marksman
|
||||
nil
|
||||
nodePackages.bash-language-server
|
||||
python3Packages.python-lsp-server
|
||||
shellcheck
|
||||
# yaml-language-server
|
||||
|
||||
terraform-lsp
|
||||
tflint
|
||||
yaml-language-server
|
||||
|
||||
# Formatters
|
||||
nixfmt-rfc-style
|
||||
|
@ -115,12 +119,15 @@ in
|
|||
p.cpp
|
||||
p.cmake
|
||||
p.dockerfile
|
||||
p.hcl
|
||||
p.helm
|
||||
p.latex
|
||||
p.lua
|
||||
p.llvm
|
||||
p.markdown
|
||||
p.markdown_inline
|
||||
p.python
|
||||
p.terraform
|
||||
p.vim
|
||||
p.yaml
|
||||
])
|
||||
|
@ -158,6 +165,7 @@ in
|
|||
type = "lua";
|
||||
config = ( builtins.readFile ./files/whichkey.lua );
|
||||
}
|
||||
vim-helm
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue