Merge branch 'main' into undotree

This commit is contained in:
Rubin Bhandari 2024-06-05 22:06:05 +05:45 committed by GitHub
commit 2b6a60557b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,7 +245,7 @@ function M.get_pkg_path(pkg, path, opts)
opts.warn = opts.warn == nil and true or opts.warn opts.warn = opts.warn == nil and true or opts.warn
path = path or "" 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) then if opts.warn and not vim.loop.fs_stat(ret) and not require("lazy.core.config").headless() then
M.warn( M.warn(
("Mason package path not found for **%s**:\n- `%s`\nYou may need to force update the package."):format(pkg, path) ("Mason package path not found for **%s**:\n- `%s`\nYou may need to force update the package."):format(pkg, path)
) )