mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
34 lines
717 B
Lua
34 lines
717 B
Lua
|
return {
|
||
|
{
|
||
|
"nvim-treesitter/nvim-treesitter",
|
||
|
opts = function(_, opts)
|
||
|
if type(opts.ensure_installed) == "table" then
|
||
|
vim.list_extend(opts.ensure_installed, {
|
||
|
"terraform",
|
||
|
"hcl",
|
||
|
})
|
||
|
end
|
||
|
end,
|
||
|
},
|
||
|
{
|
||
|
"neovim/nvim-lspconfig",
|
||
|
opts = {
|
||
|
servers = {
|
||
|
terraformls = {},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
{
|
||
|
"jose-elias-alvarez/null-ls.nvim",
|
||
|
opts = function(_, opts)
|
||
|
if type(opts.sources) == "table" then
|
||
|
local null_ls = require("null-ls")
|
||
|
vim.list_extend(opts.sources, {
|
||
|
null_ls.builtins.formatting.terraform_fmt,
|
||
|
null_ls.builtins.diagnostics.terraform_validate,
|
||
|
})
|
||
|
end
|
||
|
end,
|
||
|
},
|
||
|
}
|