fix(mason): conform to v2 changes

This commit is contained in:
Iordanis Petkakis 2025-05-08 20:17:39 +03:00
parent cb223553ff
commit 8a52e1bf75
24 changed files with 84 additions and 54 deletions

View file

@ -253,7 +253,7 @@ function M.get_pkg_path(pkg, path, opts)
opts = opts or {}
opts.warn = opts.warn == nil and true or opts.warn
path = path or ""
local ret = root .. "/packages/" .. pkg .. "/" .. path
local ret = root .. "/packages/" .. pkg .. path
if opts.warn and not vim.loop.fs_stat(ret) and not require("lazy.core.config").headless() then
M.warn(
("Mason package path not found for **%s**:\n- `%s`\nYou may need to force update the package."):format(pkg, path)