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