39 lines
726 B
Lua
39 lines
726 B
Lua
return {
|
|
|
|
{
|
|
"williamboman/mason.nvim",
|
|
optional = true,
|
|
opts = function(_, opts)
|
|
if type(opts.ensure_installed) == "table" then
|
|
vim.list_extend(opts.ensure_installed, {
|
|
"v-analyzer",
|
|
})
|
|
end
|
|
end,
|
|
},
|
|
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
opts = {
|
|
servers = {
|
|
v_analyzer = {},
|
|
},
|
|
setup = {
|
|
v_analyzer = function(_, opts)
|
|
require("lspconfig").v_analyzer.setup({})
|
|
return true
|
|
end,
|
|
},
|
|
},
|
|
},
|
|
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function(_, opts)
|
|
if type(opts.ensure_installed) == "table" then
|
|
vim.list_extend(opts.ensure_installed, { "v" })
|
|
end
|
|
end,
|
|
},
|
|
}
|