mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(util): don't print warning message in headless
This commit is contained in:
parent
f8268faa7c
commit
73c767c2f3
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ function M.get_pkg_path(pkg, path, opts)
|
|||
opts.warn = opts.warn == nil and true or opts.warn
|
||||
path = path or ""
|
||||
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(
|
||||
("Mason package path not found for **%s**:\n- `%s`\nYou may need to force update the package."):format(pkg, path)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue