From f89f47b12047eaa2f283ada9bea78f594642dcd5 Mon Sep 17 00:00:00 2001 From: Kemboi Elvis Date: Wed, 2 Jul 2025 11:15:29 +0300 Subject: [PATCH] feat: moved to volar --- lua/lazyvim/plugins/extras/lang/vue.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/vue.lua b/lua/lazyvim/plugins/extras/lang/vue.lua index 506c89d6..de5be208 100644 --- a/lua/lazyvim/plugins/extras/lang/vue.lua +++ b/lua/lazyvim/plugins/extras/lang/vue.lua @@ -19,9 +19,6 @@ return { "neovim/nvim-lspconfig", opts = { servers = { - -- Remove the old volar configuration entirely - volar = false, -- This disables the old volar setup - -- Updated VTSLS configuration for vue-language-tools vtsls = { init_options = { @@ -55,7 +52,7 @@ return { }, -- New vue_ls configuration - vue_ls = { + volar = { on_init = function(client) client.handlers["tsserver/request"] = function(_, result, context) local clients = vim.lsp.get_clients({ bufnr = context.bufnr, name = "vtsls" }) @@ -104,7 +101,7 @@ return { LazyVim.extend(opts.servers.vtsls, "settings.vtsls.tsserver.globalPlugins", { { name = "@vue/typescript-plugin", - location = LazyVim.get_pkg_path("vue-language-server", "/node_modules/@vue/language-server"), + location = vim.fn.expand("$MASON/packages/vue-language-server/node_modules/@vue/language-server"), languages = { "vue" }, configNamespace = "typescript", enableForWorkspaceTypeScriptVersions = true,