Init lazyvim
This commit is contained in:
6
lua/plugins/mason.lua
Normal file
6
lua/plugins/mason.lua
Normal file
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.ensure_installed, "prettierd")
|
||||
end,
|
||||
}
|
||||
13
lua/plugins/null-ls.lua
Normal file
13
lua/plugins/null-ls.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"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.prettierd,
|
||||
null_ls.builtins.formatting.terraform_fmt,
|
||||
null_ls.builtins.diagnostics.terraform_validate,
|
||||
})
|
||||
end
|
||||
end,
|
||||
}
|
||||
8
lua/plugins/nvim-lspconfig.lua
Normal file
8
lua/plugins/nvim-lspconfig.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
terraformls = {},
|
||||
},
|
||||
},
|
||||
}
|
||||
11
lua/plugins/nvim-treesitter.lua
Normal file
11
lua/plugins/nvim-treesitter.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user