mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 00:49:03 +02:00
fix(util): make sure mason is loaded when getting package paths
This commit is contained in:
parent
276b50e389
commit
a6df15a63f
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ end
|
|||
---@param path? string
|
||||
---@param opts? { warn?: boolean }
|
||||
function M.get_pkg_path(pkg, path, opts)
|
||||
require("mason") -- make sure Mason is loaded
|
||||
opts = opts or {}
|
||||
opts.warn = opts.warn == nil and true or opts.warn
|
||||
path = path or ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue