mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(loader): always load init.lua in plugin mods
This commit is contained in:
parent
9e90852a47
commit
60e96b478a
2 changed files with 5 additions and 3 deletions
|
@ -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, modpath
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue