We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 359c260 commit 413dd5bCopy full SHA for 413dd5b
lua/lazy/core/util.lua
@@ -135,7 +135,7 @@ end
135
---@param fn fun(modname:string, modpath:string)
136
function M.lsmod(root, fn)
137
M.ls(root, function(path, name, type)
138
- if type == "file" and name:sub(-4) == ".lua" then
+ if type == "file" and name:sub(-4) == ".lua" and name ~= "init.lua" then
139
fn(name:sub(1, -5), path)
140
elseif type == "directory" and vim.loop.fs_stat(path .. "/init.lua") then
141
fn(name, path .. "/init.lua")
0 commit comments