add vlang

This commit is contained in:
Anton Nesterov 2024-11-09 04:22:03 +01:00
parent 7af398a18c
commit 5669edd8c9
No known key found for this signature in database
GPG key ID: 59121E8AE2851FB5

38
lua/plugins/vlang.lua Normal file
View file

@ -0,0 +1,38 @@
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,
},
}