Skip to content

Commit

Permalink
feat: also allow rockspec directory
Browse files Browse the repository at this point in the history
  • Loading branch information
infastin committed Jan 14, 2025
1 parent 7190e01 commit aea6fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/pkg/rockspec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aea6fdb

Please sign in to comment.