mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +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 path? string
|
||||||
---@param opts? { warn?: boolean }
|
---@param opts? { warn?: boolean }
|
||||||
function M.get_pkg_path(pkg, path, opts)
|
function M.get_pkg_path(pkg, path, opts)
|
||||||
|
require("mason") -- make sure Mason is loaded
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
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 ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue