mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-20 21:36:45 +00:00
feat: also allow rockspec directory
This commit is contained in:
parent
7190e015cb
commit
aea6fdb84b
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ function M.find_rockspec(plugin)
|
||||||
end
|
end
|
||||||
|
|
||||||
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 == "rockspec" or name == "rockspecs") then
|
||||||
Util.ls(path, function(path, name, t)
|
Util.ls(path, function(path, name, t)
|
||||||
if t == "file" then
|
if t == "file" then
|
||||||
rockspec_file = check_file(path, name)
|
rockspec_file = check_file(path, name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue