mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-11 01:42:32 +00:00
chore: only check files inside rockspecs directory
This commit is contained in:
parent
a17180d7a9
commit
7190e015cb
1 changed files with 5 additions and 3 deletions
|
@ -260,9 +260,11 @@ function M.find_rockspec(plugin)
|
||||||
Util.ls(plugin.dir, function(path, name, t)
|
Util.ls(plugin.dir, function(path, name, t)
|
||||||
if t == "directory" and name == "rockspecs" then
|
if t == "directory" and name == "rockspecs" then
|
||||||
Util.ls(path, function(path, name, t)
|
Util.ls(path, function(path, name, t)
|
||||||
rockspec_file = check_file(path, name)
|
if t == "file" then
|
||||||
if rockspec_file ~= nil then
|
rockspec_file = check_file(path, name)
|
||||||
return false
|
if rockspec_file ~= nil then
|
||||||
|
return false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
if rockspec_file ~= nil then
|
if rockspec_file ~= nil then
|
||||||
|
|
Loading…
Add table
Reference in a new issue