mirror of https://github.com/folke/lazy.nvim.git
fix(cache): properly return two values for finddir
This commit is contained in:
parent
8b6a98ad26
commit
1ec8f08480
|
@ -271,7 +271,7 @@ function M.find_dir(modname)
|
|||
local modpath = M.find(modname, { patterns = { "" } })
|
||||
if modpath then
|
||||
local root = modpath:gsub("/init%.lua$", ""):gsub("%.lua$", "")
|
||||
return root, root ~= modpath and modpath or nil
|
||||
return root, (root ~= modpath and modpath or nil)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue