Compare commits
14 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
306a05526a | |
|
|
073727e794 | |
|
|
0f7c7982f0 | |
|
|
7930f2d06e | |
|
|
85c7ff3711 | |
|
|
5c09e6fe71 | |
|
|
e6a8824858 | |
|
|
dfdc85e189 | |
|
|
202d8e92b3 | |
|
|
f0f5bbb9e5 | |
|
|
ed4dc336a7 | |
|
|
e31789c675 | |
|
|
5b15bc9f49 | |
|
|
3c86e23658 |
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
".": "11.17.2"
|
||||
".": "11.17.5"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'folke' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
- uses: folke/github/neovim@main
|
||||
- name: Rockspec Build
|
||||
id: rockspec-build
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: build
|
||||
key: rockspec-build
|
||||
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
run: |
|
||||
nvim -l lua/lazy/build.lua
|
||||
- name: Push changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
uses: stefanzweifel/git-auto-commit-action@v7
|
||||
with:
|
||||
commit_message: "chore(build): auto-generate rockspec mappings"
|
||||
commit_user_name: "github-actions[bot]"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: docs
|
||||
- name: Generate Docs
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
config:
|
||||
MD013: false
|
||||
MD033: false
|
||||
21
CHANGELOG.md
21
CHANGELOG.md
|
|
@ -1,5 +1,26 @@
|
|||
# Changelog
|
||||
|
||||
## [11.17.5](https://github.com/folke/lazy.nvim/compare/v11.17.4...v11.17.5) (2025-11-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **luarocks:** proper parsing of dependency name. Closes [#2086](https://github.com/folke/lazy.nvim/issues/2086) ([5c09e6f](https://github.com/folke/lazy.nvim/commit/5c09e6fe71f4bb930eeffe24d45762fa3ffada4e))
|
||||
|
||||
## [11.17.4](https://github.com/folke/lazy.nvim/compare/v11.17.3...v11.17.4) (2025-11-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **plugin:** proper error message when a plugin spec returns more than one value. ([dfdc85e](https://github.com/folke/lazy.nvim/commit/dfdc85e18930a3f1643e83c8ed0c514ca85e49fa))
|
||||
|
||||
## [11.17.3](https://github.com/folke/lazy.nvim/compare/v11.17.2...v11.17.3) (2025-10-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **luarocks:** update to lumen-oss for binaries. Closes [#2060](https://github.com/folke/lazy.nvim/issues/2060). Closes [#2059](https://github.com/folke/lazy.nvim/issues/2059) ([e31789c](https://github.com/folke/lazy.nvim/commit/e31789c675e2f591a20fc894b6713398eaa5dddd))
|
||||
|
||||
## [11.17.2](https://github.com/folke/lazy.nvim/compare/v11.17.1...v11.17.2) (2025-10-23)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -669,7 +669,7 @@ will be added to the plugin’s spec.
|
|||
rocks = {
|
||||
enabled = true,
|
||||
root = vim.fn.stdpath("data") .. "/lazy-rocks",
|
||||
server = "https://nvim-neorocks.github.io/rocks-binaries/",
|
||||
server = "https://lumen-oss.github.io/rocks-binaries/",
|
||||
-- use hererocks to install luarocks?
|
||||
-- set to `nil` to use hererocks when luarocks is not found
|
||||
-- set to `true` to always use hererocks
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ local Util = require("lazy.util")
|
|||
local M = {}
|
||||
|
||||
M.patterns = { "nvim", "treesitter", "tree-sitter", "cmp", "neo" }
|
||||
local manifest_file = "build/manifest.lua"
|
||||
|
||||
function M.fetch(url, file, prefix)
|
||||
if not vim.uv.fs_stat(file) then
|
||||
|
|
@ -19,11 +20,46 @@ function M.fetch(url, file, prefix)
|
|||
end
|
||||
end
|
||||
|
||||
function M.split()
|
||||
local lines = vim.fn.readfile(manifest_file)
|
||||
local id = 0
|
||||
local files = {} ---@type string[]
|
||||
while #lines > 0 do
|
||||
id = id + 1
|
||||
local part_file = "build/manifest-part-" .. id .. ".lua"
|
||||
local idx = math.min(#lines, 30000)
|
||||
while idx < #lines and not lines[idx]:match("^ },$") do
|
||||
idx = idx + 1
|
||||
end
|
||||
local part_lines = vim.list_slice(lines, 1, idx)
|
||||
if idx ~= #lines then
|
||||
part_lines[#part_lines] = " }}"
|
||||
end
|
||||
vim.fn.writefile(part_lines, part_file)
|
||||
files[#files + 1] = part_file
|
||||
print("Wrote " .. part_file .. "\n")
|
||||
|
||||
lines = vim.list_slice(lines, idx + 1)
|
||||
if #lines == 0 then
|
||||
break
|
||||
end
|
||||
lines[1] = "repository = { " .. lines[1]
|
||||
end
|
||||
return files
|
||||
end
|
||||
|
||||
---@return RockManifest?
|
||||
function M.fetch_manifest()
|
||||
local manifest_file = "build/manifest.lua"
|
||||
M.fetch("https://luarocks.org/manifest-5.1", manifest_file)
|
||||
return Rocks.parse(manifest_file)
|
||||
local ret = { repository = {} }
|
||||
for _, file in ipairs(M.split()) do
|
||||
local part = Rocks.parse(file)
|
||||
print(vim.tbl_count(part.repository or {}) .. " rocks in " .. file .. "\n")
|
||||
for k, v in pairs(part.repository or {}) do
|
||||
ret.repository[k] = v
|
||||
end
|
||||
end
|
||||
return ret
|
||||
end
|
||||
|
||||
function M.fetch_rockspec(name, version, prefix)
|
||||
|
|
@ -37,6 +73,7 @@ function M.build()
|
|||
local manifest = M.fetch_manifest() or {}
|
||||
---@type {name:string, version:string, url:string}[]
|
||||
local nvim_rocks = {}
|
||||
print(vim.tbl_count(manifest.repository or {}) .. " rocks in manifest\n")
|
||||
for rock, vv in pairs(manifest.repository or {}) do
|
||||
local matches = false
|
||||
for _, pattern in ipairs(M.patterns) do
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -59,7 +59,7 @@ M.defaults = {
|
|||
rocks = {
|
||||
enabled = true,
|
||||
root = vim.fn.stdpath("data") .. "/lazy-rocks",
|
||||
server = "https://nvim-neorocks.github.io/rocks-binaries/",
|
||||
server = "https://lumen-oss.github.io/rocks-binaries/",
|
||||
-- use hererocks to install luarocks?
|
||||
-- set to `nil` to use hererocks when luarocks is not found
|
||||
-- set to `true` to always use hererocks
|
||||
|
|
@ -242,7 +242,7 @@ function M.hererocks()
|
|||
return M.options.rocks.hererocks
|
||||
end
|
||||
|
||||
M.version = "11.17.2" -- x-release-please-version
|
||||
M.version = "11.17.5" -- x-release-please-version
|
||||
|
||||
M.ns = vim.api.nvim_create_namespace("lazy")
|
||||
|
||||
|
|
|
|||
|
|
@ -156,7 +156,11 @@ function Spec:import(spec)
|
|||
load = function()
|
||||
local mod, err = loadfile(modpath)
|
||||
if mod then
|
||||
return mod()
|
||||
local ret, foo = mod()
|
||||
if foo then
|
||||
return nil, "Spec module returned more than one value. Expected a single value."
|
||||
end
|
||||
return ret
|
||||
else
|
||||
return nil, err
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue