Skip to content

Commit fb7aeaf

Browse files
committed
fix(vue): remove usage of old Mason API
1 parent 88b9065 commit fb7aeaf

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lua/astrocommunity/pack/vue/init.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,11 @@ return {
3636
before_init = function(_, config)
3737
local registry_ok, registry = pcall(require, "mason-registry")
3838
if not registry_ok then return end
39-
local vuels = registry.get_package "vue-language-server"
40-
41-
if vuels:is_installed() then
42-
local volar_install_path = vuels:get_install_path() .. "/node_modules/@vue/language-server"
4339

40+
if registry.is_installed "vue-language-server" then
4441
local vue_plugin_config = {
4542
name = "@vue/typescript-plugin",
46-
location = volar_install_path,
43+
location = vim.fn.expand "$MASON/packages/vue-language-server/node_modules/@vue/language-server",
4744
languages = { "vue" },
4845
configNamespace = "typescript",
4946
enableForWorkspaceTypeScriptVersions = true,

0 commit comments

Comments
 (0)