add vlang
This commit is contained in:
parent
7af398a18c
commit
5669edd8c9
38
lua/plugins/vlang.lua
Normal file
38
lua/plugins/vlang.lua
Normal 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,
|
||||
},
|
||||
}
|
Loading…
Reference in a new issue