From 5669edd8c908155fd55a2171b58333a04443e03a Mon Sep 17 00:00:00 2001 From: Anton Nesterov Date: Sat, 9 Nov 2024 04:22:03 +0100 Subject: [PATCH] add vlang --- lua/plugins/vlang.lua | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lua/plugins/vlang.lua diff --git a/lua/plugins/vlang.lua b/lua/plugins/vlang.lua new file mode 100644 index 0000000..e2723ec --- /dev/null +++ b/lua/plugins/vlang.lua @@ -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, + }, +}