From aea6fdb84b413474e992c9d50e46432ba3c29b1f Mon Sep 17 00:00:00 2001 From: infastin Date: Tue, 14 Jan 2025 23:29:43 +0500 Subject: [PATCH] feat: also allow rockspec directory --- lua/lazy/pkg/rockspec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/pkg/rockspec.lua b/lua/lazy/pkg/rockspec.lua index 1616071..f6accd9 100644 --- a/lua/lazy/pkg/rockspec.lua +++ b/lua/lazy/pkg/rockspec.lua @@ -258,7 +258,7 @@ function M.find_rockspec(plugin) end Util.ls(plugin.dir, function(path, name, t) - if t == "directory" and name == "rockspecs" then + if t == "directory" and (name == "rockspec" or name == "rockspecs") then Util.ls(path, function(path, name, t) if t == "file" then rockspec_file = check_file(path, name)