nvim/lua/plugins/vlang.lua
Anton Nesterov 5669edd8c9
add vlang
2024-11-09 04:22:03 +01:00

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,
},
}