mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-11-07 09:44:21 +00:00
fix(luarocks): proper parsing of dependency name. Closes #2086
This commit is contained in:
parent
e6a8824858
commit
5c09e6fe71
1 changed files with 4 additions and 1 deletions
|
|
@ -285,7 +285,10 @@ function M.get(plugin)
|
|||
|
||||
---@param dep string
|
||||
local rocks = vim.tbl_filter(function(dep)
|
||||
local name = dep:gsub("%s.*", "")
|
||||
local name = dep:match("^%s*([^~><=%s]+)")
|
||||
if not name then
|
||||
return false
|
||||
end
|
||||
local url = Community.get_url(name)
|
||||
local spec = Community.get_spec(name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue