Skip to content

Commit f14d0ff

Browse files
authored
fix(vue): Use get_install_path() from mason registery to find volar installation path (#1531)
* fix: mason env variable not defined while loading, use 'get_install_path()' instead * chore: forgot the concat operator
1 parent 16231a6 commit f14d0ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/astrocommunity/pack/vue/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ return {
3939
local vuels = registry.get_package "vue-language-server"
4040

4141
if vuels:is_installed() then
42-
local volar_install_path =
43-
vim.fn.expand "$MASON/packages/vue-language-server/node_modules/@vue/language-server"
42+
local volar_install_path = vuels:get_install_path() .. "/node_modules/@vue/language-server"
4443

4544
local vue_plugin_config = {
4645
name = "@vue/typescript-plugin",

0 commit comments

Comments
 (0)