ci: auto-get rockspec mappings for rock name => github short url or url

This commit is contained in:
Folke Lemaitre 2024-06-25 17:41:14 +02:00
parent 2ca68f9979
commit b6eba0d026
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
7 changed files with 117405 additions and 1 deletions

View File

@ -26,6 +26,36 @@ jobs:
nvim --version nvim --version
[ ! -d tests ] && exit 0 [ ! -d tests ] && exit 0
nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/init.lua', sequential = true}" nvim --headless -u tests/init.lua -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/init.lua', sequential = true}"
community:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Neovim
shell: bash
run: |
mkdir -p /tmp/nvim
wget -q https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O /tmp/nvim/nvim.appimage
cd /tmp/nvim
chmod a+x ./nvim.appimage
./nvim.appimage --appimage-extract
echo "/tmp/nvim/squashfs-root/usr/bin/" >> $GITHUB_PATH
- name: Rockspec Build
id: rockspec-build
uses: actions/cache@v4
with:
path: build
key: rockspec-build
- name: Generate Rockspec
if: steps.rockspec-build.cache-hit != 'true'
run: |
nvim -l lua/lazy/build.lua
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(build): auto-generate rockspec mappings"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
release: release:
name: release name: release
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ debug
foo.* foo.*
*.log *.log
data data
build

90
lua/lazy/build.lua Normal file
View File

@ -0,0 +1,90 @@
vim.opt.rtp:append(".")
local Rocks = require("lazy.pkg.rockspec")
local Semver = require("lazy.manage.semver")
local Util = require("lazy.util")
local M = {}
function M.fetch(url, file, prefix)
if not vim.uv.fs_stat(file) then
print((prefix or "") .. "Fetching " .. url .. " to " .. file .. "\n")
vim.cmd.redraw()
local out = vim.fn.system("wget " .. url .. " -O " .. file)
if vim.v.shell_error ~= 0 then
pcall(vim.uv.fs_unlink, file)
error("Failed to fetch " .. url .. ":\n" .. out)
end
end
end
---@return RockManifest?
function M.fetch_manifest()
local manifest_file = "build/manifest.lua"
M.fetch("https://luarocks.org/manifest", manifest_file)
return Rocks.parse(manifest_file)
end
function M.fetch_rockspec(name, version, prefix)
version = version or "scm-1"
local url = "https://luarocks.org/" .. name .. "-" .. version .. ".rockspec"
M.fetch(url, "build/" .. name .. ".rockspec", prefix)
end
function M.build()
vim.fn.mkdir("build", "p")
local manifest = M.fetch_manifest() or {}
---@type {name:string, version:string, url:string}[]
local nvim_rocks = {}
for rock, vv in pairs(manifest.repository or {}) do
if rock:find("nvim", 1, true) then
local versions = vim.tbl_map(Semver.version, vim.tbl_keys(vv))
versions = vim.tbl_filter(function(v)
return not not v
end, versions)
local last = Semver.last(versions) or next(vv)
last = type(last) == "table" and last.input or last
table.insert(nvim_rocks, { name = rock, version = last })
end
end
table.sort(nvim_rocks, function(a, b)
return a.name < b.name
end)
for r, rock in ipairs(nvim_rocks) do
local progress = string.format("[%d/%d] ", r, #nvim_rocks)
local ok, err = pcall(M.fetch_rockspec, rock.name, rock.version, progress)
if not ok then
err = vim.trim("Error: " .. err)
local lines = vim.split(err, "\n")
lines = vim.tbl_map(function(line)
return " " .. line
end, lines)
print(table.concat(lines, "\n") .. "\n")
end
end
for _, rock in ipairs(nvim_rocks) do
local rockspec = Rocks.rockspec("build/" .. rock.name .. ".rockspec")
if rockspec then
local url = rockspec.source and rockspec.source.url
-- parse github short url
if url and url:find("^%a+://github.com/") then
url = url:gsub("^%a+://github.com/", "")
local parts = vim.split(url, "/")
url = parts[1] .. "/" .. parts[2]
end
if url then
rock.url = url
print(rock.name .. " " .. url)
else
print("Error: " .. rock.name .. " missing source url\n\n")
print(vim.inspect(rockspec) .. "\n")
end
end
end
Util.write_file("lua/lazy/community/rocks.lua", "return \n" .. vim.inspect(nvim_rocks))
end
M.build()
return M

View File

@ -0,0 +1,873 @@
return {
{
name = "15puzzle.nvim",
url = "NStefan002/15puzzle.nvim",
version = "1.4.1-1",
},
{
name = "aerial.nvim",
url = "stevearc/aerial.nvim",
version = "1.7.0-1",
},
{
name = "ai.nvim",
url = "S1M0N38/ai.nvim",
version = "0.1.0-1",
},
{
name = "auto-hlsearch.nvim",
url = "asiryk/auto-hlsearch.nvim",
version = "1.1.0-1",
},
{
name = "better-escape.nvim",
url = "max397574/better-escape.nvim",
version = "1.0.0-1",
},
{
name = "bufferline.nvim",
url = "akinsho/bufferline.nvim",
version = "4.6.1-1",
},
{
name = "ccc.nvim",
url = "uga-rosa/ccc.nvim",
version = "1.6.0-1",
},
{
name = "ci-template.nvim",
url = "linrongbin16/ci-template.nvim",
version = "8.1.0-1",
},
{
name = "colorbox.nvim",
url = "linrongbin16/colorbox.nvim",
version = "3.1.0-1",
},
{
name = "colorbuddy.nvim",
url = "tjdevries/colorbuddy.nvim",
version = "1.0.0-1",
},
{
name = "colortils.nvim",
url = "nvim-colortils/colortils.nvim",
version = "1.1.0-1",
},
{
name = "commander.nvim",
url = "FeiyouG/commander.nvim",
version = "0.2.0-1",
},
{
name = "comment-box.nvim",
url = "LudoPinelli/comment-box.nvim",
version = "1.0.2-1",
},
{
name = "comment.nvim",
url = "numToStr/Comment.nvim",
version = "0.8.0-1",
},
{
name = "commons.nvim",
url = "linrongbin16/commons.nvim",
version = "18.0.0-1",
},
{
name = "conform.nvim",
url = "stevearc/conform.nvim",
version = "6.0.0-1",
},
{
name = "cybu.nvim",
url = "ghillb/cybu.nvim",
version = "1.0-1",
},
{
name = "daylight.nvim",
url = "NTBBloodbath/daylight.nvim",
version = "1.1.0-1",
},
{
name = "deadcolumn.nvim",
url = "Bekaboo/deadcolumn.nvim",
version = "1.0.0-1",
},
{
name = "decipher.nvim",
url = "MisanthropicBit/decipher.nvim",
version = "1.0.1-1",
},
{
name = "detour.nvim",
url = "carbon-steel/detour.nvim",
version = "1.4.0-1",
},
{
name = "dial.nvim",
url = "monaqa/dial.nvim",
version = "0.4.0-1",
},
{
name = "distant.nvim",
url = "chipsenkbeil/distant.nvim",
version = "0.1.2-1",
},
{
name = "donut.nvim",
url = "NStefan002/donut.nvim",
version = "2.1.0-1",
},
{
name = "dressing.nvim",
url = "stevearc/dressing.nvim",
version = "2.2.2-1",
},
{
name = "dropbar.nvim",
url = "Bekaboo/dropbar.nvim",
version = "8.4.0-1",
},
{
name = "duck.nvim",
url = "tamton-aquib/duck.nvim",
version = "main-1",
},
{
name = "easypick.nvim",
url = "axkirillov/easypick.nvim",
version = "0.6.0-1",
},
{
name = "edgy.nvim",
url = "folke/edgy.nvim",
version = "1.9.1-1",
},
{
name = "elixir-tools.nvim",
url = "elixir-tools/elixir-tools.nvim",
version = "0.14.3-1",
},
{
name = "feline.nvim",
url = "freddiehaddad/feline.nvim",
version = "1.6.2-1",
},
{
name = "fidget.nvim",
url = "j-hui/fidget.nvim",
version = "1.4.1-1",
},
{
name = "flash.nvim",
url = "folke/flash.nvim",
version = "1.18.3-1",
},
{
name = "flatten.nvim",
url = "willothy/flatten.nvim",
version = "0.5.1-1",
},
{
name = "flutter-tools.nvim",
url = "akinsho/flutter-tools.nvim",
version = "1.10.0-1",
},
{
name = "focus.nvim",
url = "nvim-focus/focus.nvim",
version = "1.0.2-1",
},
{
name = "freeze-code.nvim",
url = "AlejandroSuero/freeze-code.nvim",
version = "0.2.0-1",
},
{
name = "fugit2.nvim",
url = "SuperBo/fugit2.nvim",
version = "0.2.0-1",
},
{
name = "funnyfiles.nvim",
url = "aikooo7/funnyfiles.nvim",
version = "1.0.1-1",
},
{
name = "fzfx.nvim",
url = "linrongbin16/fzfx.nvim",
version = "6.4.0-1",
},
{
name = "galileo.nvim",
url = "S1M0N38/galileo.nvim",
version = "0.0.2-1",
},
{
name = "gentags.nvim",
url = "linrongbin16/gentags.nvim",
version = "3.0.2-1",
},
{
name = "git-worktree.nvim",
url = "polarmutex/git-worktree.nvim",
version = "1.0.0-1",
},
{
name = "github-nvim-theme",
url = "projekt0n/github-nvim-theme",
version = "1.0.2-1",
},
{
name = "gitlinker.nvim",
url = "linrongbin16/gitlinker.nvim",
version = "4.13.1-1",
},
{
name = "gitsigns.nvim",
url = "lewis6991/gitsigns.nvim",
version = "scm-1",
},
{
name = "glow.nvim",
url = "ellisonleao/glow.nvim",
version = "0.2.0-1",
},
{
name = "go.nvim",
url = "ray-x/go.nvim",
version = "0.2.1-1",
},
{
name = "godo.nvim",
url = "arthuradolfo/godo.nvim",
version = "1.1.0-0",
},
{
name = "grapple.nvim",
url = "cbochs/grapple.nvim",
version = "0.30.0-1",
},
{
name = "gruvbox.nvim",
url = "ellisonleao/gruvbox.nvim",
version = "2.0.0-1",
},
{
name = "haskell-snippets.nvim",
url = "mrcjkb/haskell-snippets.nvim",
version = "1.4.4-1",
},
{
name = "haskell-tools.nvim",
url = "mrcjkb/haskell-tools.nvim",
version = "3.1.10-1",
},
{
name = "headlines.nvim",
url = "lukas-reineke/headlines.nvim",
version = "4.0.1-1",
},
{
name = "heirline.nvim",
url = "rebelot/heirline.nvim",
version = "1.0.6-1",
},
{
name = "hlchunk.nvim",
url = "shellRaining/hlchunk.nvim",
version = "1.1.0-1",
},
{
name = "hotpot.nvim",
url = "rktjmp/hotpot.nvim",
version = "0.12.1-1",
},
{
name = "hydra.nvim",
url = "nvimtools/hydra.nvim",
version = "1.0.2-1",
},
{
name = "image.nvim",
url = "3rd/image.nvim",
version = "1.3.0-1",
},
{
name = "incline.nvim",
url = "b0o/incline.nvim",
version = "0.0.1-1",
},
{
name = "indent-blankline.nvim",
url = "lukas-reineke/indent-blankline.nvim",
version = "3.6.3-1",
},
{
name = "kai.nvim",
url = "Kamilcuk/kai.nvim",
version = "0.0.6-1",
},
{
name = "lazy.nvim",
url = "folke/lazy.nvim",
version = "11.2.1-1",
},
{
name = "leetcode.nvim",
url = "kawre/leetcode.nvim",
version = "0.2.0-1",
},
{
name = "legendary.nvim",
url = "mrjones2014/legendary.nvim",
version = "2.13.11-1",
},
{
name = "live-command.nvim",
url = "smjonas/live-command.nvim",
version = "1.2.1-1",
},
{
name = "logging.nvim",
url = "NTBBloodbath/logging.nvim",
version = "1.1.0-1",
},
{
name = "love2d.nvim",
url = "S1M0N38/love2d.nvim",
version = "0.2-1",
},
{
name = "lsp-progress.nvim",
url = "linrongbin16/lsp-progress.nvim",
version = "1.0.12-1",
},
{
name = "lsp_signature.nvim",
url = "ray-x/lsp_signature.nvim",
version = "0.3.1-1",
},
{
name = "lua-obfuscator.nvim",
url = "git+ssh://git@github.com/kdssoftware/lua-obfuscator.nvim.git",
version = "1.0.1-1",
},
{
name = "lua-utils.nvim",
url = "nvim-neorg/lua-utils.nvim",
version = "1.0.2-1",
},
{
name = "mapx.nvim",
url = "b0o/mapx.nvim",
version = "0.2.1-1",
},
{
name = "mason-lspconfig.nvim",
url = "williamboman/mason-lspconfig.nvim",
version = "1.29.0-1",
},
{
name = "mason-nvim-dap.nvim",
url = "jay-babu/mason-nvim-dap.nvim",
version = "2.3.0-1",
},
{
name = "mason.nvim",
url = "williamboman/mason.nvim",
version = "1.10.0-1",
},
{
name = "mini.nvim",
url = "echasnovski/mini.nvim",
version = "0.9.0-1",
},
{
name = "mkdnflow.nvim",
url = "jakewvincent/mkdnflow.nvim",
version = "1.2.0-1",
},
{
name = "move.nvim",
url = "fedepujol/move.nvim",
version = "2.0.0-1",
},
{
name = "multicursors.nvim",
url = "smoka7/multicursors.nvim",
version = "1.0.0-1",
},
{
name = "my-awesome-plugin.nvim",
url = "S1M0N38/my-awesome-plugin.nvim",
version = "0.1.1-1",
},
{
name = "navigator.nvim",
url = "numToStr/Navigator.nvim",
version = "0.6-1",
},
{
name = "neo-tree.nvim",
url = "nvim-neo-tree/neo-tree.nvim",
version = "3.26-1",
},
{
name = "neoconf.nvim",
url = "folke/neoconf.nvim",
version = "1.2.2-1",
},
{
name = "neodev.nvim",
url = "folke/neodev.nvim",
version = "3.0.0-1",
},
{
name = "neoscroll.nvim",
url = "karb94/neoscroll.nvim",
version = "0.2.0-1",
},
{
name = "nightfox.nvim",
url = "EdenEast/nightfox.nvim",
version = "3.9.3-1",
},
{
name = "no-neck-pain.nvim",
url = "shortcuts/no-neck-pain.nvim",
version = "1.14.0-1",
},
{
name = "noice.nvim",
url = "folke/noice.nvim",
version = "4.3.0-1",
},
{
name = "npackages.nvim",
url = "diegofigs/npackages.nvim",
version = "0.1.0-1",
},
{
name = "nui-components.nvim",
url = "grapp-dev/nui-components.nvim",
version = "1.5.2-1",
},
{
name = "nui.nvim",
url = "git+https://github.com/MunifTanjim/nui.nvim.git",
version = "0.3.0-1",
},
{
name = "nvim-client",
url = "neovim/lua-client",
version = "0.2.4-1",
},
{
name = "nvim-client-proxy",
url = "hjdivad/nvim-client-proxy",
version = "0.1.0-1",
},
{
name = "nvim-cmp",
url = "hrsh7th/nvim-cmp",
version = "0.0.1-2",
},
{
name = "nvim-cokeline",
url = "willothy/nvim-cokeline",
version = "0.4.0-1",
},
{
name = "nvim-dap",
url = "mfussenegger/nvim-dap",
version = "0.8.0-1",
},
{
name = "nvim-dap-ui",
url = "rcarriga/nvim-dap-ui",
version = "4.0.0-1",
},
{
name = "nvim-dbee",
url = "kndndrj/nvim-dbee",
version = "0.1.6-1",
},
{
name = "nvim-dev-container",
url = "esensar/nvim-dev-container",
version = "0.2.0-1",
},
{
name = "nvim-java",
url = "nvim-java/nvim-java",
version = "1.0.0-1",
},
{
name = "nvim-java-core",
url = "nvim-java/nvim-java-core",
version = "1.0.0-1",
},
{
name = "nvim-java-dap",
url = "nvim-java/nvim-java-dap",
version = "1.0.0-1",
},
{
name = "nvim-jdtls",
url = "mfussenegger/nvim-jdtls",
version = "0.2.0-1",
},
{
name = "nvim-jqx",
url = "gennaro-tedesco/nvim-jqx",
version = "0.1.4-1",
},
{
name = "nvim-lastplace",
url = "mrcjkb/nvim-lastplace",
version = "1.0.0-1",
},
{
name = "nvim-lightbulb",
url = "kosayoda/nvim-lightbulb",
version = "1.0.0-1",
},
{
name = "nvim-lspconfig",
url = "neovim/nvim-lspconfig",
version = "0.1.8-1",
},
{
name = "nvim-metals",
url = "scalameta/nvim-metals",
version = "0.9.x-1",
},
{
name = "nvim-nio",
url = "nvim-neotest/nvim-nio",
version = "1.9.4-1",
},
{
name = "nvim-notify",
url = "rcarriga/nvim-notify",
version = "3.13.5-1",
},
{
name = "nvim-parinfer",
url = "gpanders/nvim-parinfer",
version = "1.2.0-1",
},
{
name = "nvim-peekup",
url = "gennaro-tedesco/nvim-peekup",
version = "0.1.1-1",
},
{
name = "nvim-possession",
url = "gennaro-tedesco/nvim-possession",
version = "0.0.13-1",
},
{
name = "nvim-scrollview",
url = "dstein64/nvim-scrollview",
version = "5.1.0-1",
},
{
name = "nvim-smuggler",
url = "Klafyvel/nvim-smuggler",
version = "main-1",
},
{
name = "nvim-snippy",
url = "dcampos/nvim-snippy",
version = "1.0.0-1",
},
{
name = "nvim-surround",
url = "kylechui/nvim-surround",
version = "2.1.5-1",
},
{
name = "nvim-tree.lua",
url = "nvim-tree/nvim-tree.lua",
version = "1.4.0-1",
},
{
name = "nvim-treesitter-legacy-api",
url = "nvim-treesitter/nvim-treesitter",
version = "0.9.2-1",
},
{
name = "nvim-ufo",
url = "kevinhwang91/nvim-ufo",
version = "1.4.0-1",
},
{
name = "nvim-web-devicons",
url = "nvim-tree/nvim-web-devicons",
version = "0.100-1",
},
{
name = "obsidian.nvim",
url = "epwalsh/obsidian.nvim",
version = "3.8.0-1",
},
{
name = "oil.nvim",
url = "stevearc/oil.nvim",
version = "2.10.0-1",
},
{
name = "onedarkpro.nvim",
url = "olimorris/onedarkpro.nvim",
version = "0.8.0-1",
},
{
name = "onenord.nvim",
url = "rmehri01/onenord.nvim",
version = "0.7.0-1",
},
{
name = "otter.nvim",
url = "jmbuhr/otter.nvim",
version = "1.15.1-1",
},
{
name = "overseer.nvim",
url = "stevearc/overseer.nvim",
version = "1.4.0-1",
},
{
name = "oz.nvim",
url = "luxluth/oz.nvim",
version = "0.0.3-1",
},
{
name = "package-info.nvim",
url = "vuki656/package-info.nvim",
version = "2.0-1",
},
{
name = "paperplanes.nvim",
url = "rktjmp/paperplanes.nvim",
version = "0.1.6-1",
},
{
name = "papis.nvim",
url = "jghauser/papis.nvim",
version = "0.5.1-1",
},
{
name = "paq-nvim",
url = "savq/paq-nvim",
version = "2.0.0-1",
},
{
name = "pathlib.nvim",
url = "pysan3/pathlib.nvim",
version = "2.2.2-1",
},
{
name = "persistence.nvim",
url = "folke/persistence.nvim",
version = "2.0.0-1",
},
{
name = "plenary.nvim",
url = "nvim-lua/plenary.nvim",
version = "0.1.4-1",
},
{
name = "pretty-fold.nvim",
url = "anuvyklack/pretty-fold.nvim",
version = "3.0-1",
},
{
name = "rainbow-delimiters.nvim",
url = "HiPhish/rainbow-delimiters.nvim",
version = "0.4.0-1",
},
{
name = "renamer.nvim",
url = "filipdutescu/renamer.nvim",
version = "5.1.0-1",
},
{
name = "rest.nvim",
url = "rest-nvim/rest.nvim",
version = "2.0.1-1",
},
{
name = "rocks-config.nvim",
url = "nvim-neorocks/rocks-config.nvim",
version = "2.0.1-1",
},
{
name = "rocks-dev.nvim",
url = "nvim-neorocks/rocks-dev.nvim",
version = "1.2.3-1",
},
{
name = "rocks-git.nvim",
url = "nvim-neorocks/rocks-git.nvim",
version = "1.5.1-1",
},
{
name = "rocks.nvim",
url = "nvim-neorocks/rocks.nvim",
version = "2.32.0-1",
},
{
name = "rtp.nvim",
url = "nvim-neorocks/rtp.nvim",
version = "1.0.0-1",
},
{
name = "rustaceanvim",
url = "mrcjkb/rustaceanvim",
version = "4.25.1-1",
},
{
name = "schemastore.nvim",
url = "b0o/SchemaStore.nvim",
version = "0.2.0-1",
},
{
name = "screenkey.nvim",
url = "NStefan002/screenkey.nvim",
version = "2.1.0-1",
},
{
name = "scrollbar.nvim",
url = "Xuyuanp/scrollbar.nvim",
version = "0.4.0-1",
},
{
name = "session.nvim",
url = "Kibadda/session.nvim",
version = "2.0.0-1",
},
{
name = "sg.nvim",
url = "sourcegraph/sg.nvim",
version = "1.1.0-1",
},
{
name = "smart-splits.nvim",
url = "mrjones2014/smart-splits.nvim",
version = "1.5.0-1",
},
{
name = "squirrel.nvim",
url = "xiaoshihou514/squirrel.nvim",
version = "1.0.0-1",
},
{
name = "storm-mode.nvim",
url = "HoppenR/storm-mode.nvim",
version = "1.2.0-1",
},
{
name = "structlog.nvim",
url = "git+ssh://git@github.com/Tastyep/structlog.nvim.git",
version = "0.1-1",
},
{
name = "substitute.nvim",
url = "gbprod/substitute.nvim",
version = "2.0.0-1",
},
{
name = "sweetie.nvim",
url = "NTBBloodbath/sweetie.nvim",
version = "3.1.1-1",
},
{
name = "tabby.nvim",
url = "nanozuki/tabby.nvim",
version = "2.5.1-1",
},
{
name = "telescope-zf-native.nvim",
url = "natecraddock/telescope-zf-native.nvim",
version = "1.0.0-1",
},
{
name = "telescope.nvim",
url = "nvim-telescope/telescope.nvim",
version = "0.1.8-1",
},
{
name = "todo-comments.nvim",
url = "folke/todo-comments.nvim",
version = "1.2.0-1",
},
{
name = "toggleterm.nvim",
url = "akinsho/toggleterm.nvim",
version = "2.11.0-1",
},
{
name = "tokyonight.nvim",
url = "folke/tokyonight.nvim",
version = "3.0.1-1",
},
{
name = "trouble.nvim",
url = "folke/trouble.nvim",
version = "3.4.3-1",
},
{
name = "tsc.nvim",
url = "dmmulroy/tsc.nvim",
version = "2.3.0-1",
},
{
name = "twilight.nvim",
url = "folke/twilight.nvim",
version = "1.0.0-1",
},
{
name = "unimpaired.nvim",
url = "tummetott/unimpaired.nvim",
version = "0.2.0-1",
},
{
name = "vgit.nvim",
url = "tanvirtin/vgit.nvim",
version = "0.2.2-1",
},
{
name = "which-key.nvim",
url = "folke/which-key.nvim",
version = "2.1.0-1",
},
{
name = "windline.nvim",
url = "windwp/windline.nvim",
version = "1.1.0-1",
},
{
name = "yanky.nvim",
url = "gbprod/yanky.nvim",
version = "2.0.0-1",
},
{
name = "yazi.nvim",
url = "mikavilpas/yazi.nvim",
version = "master-1",
},
{
name = "zen-mode.nvim",
url = "folke/zen-mode.nvim",
version = "1.3.0-1",
},
{
name = "zk-nvim",
url = "zk-org/zk-nvim",
version = "0.1.0-1",
},
}

View File

@ -9,6 +9,7 @@ local M = {}
---@field patch number ---@field patch number
---@field prerelease? string ---@field prerelease? string
---@field build? string ---@field build? string
---@field input? string
local Semver = {} local Semver = {}
Semver.__index = Semver Semver.__index = Semver
@ -90,6 +91,7 @@ function M.version(version)
patch = patch == "" and 0 or tonumber(patch), patch = patch == "" and 0 or tonumber(patch),
prerelease = prerelease ~= "" and prerelease or nil, prerelease = prerelease ~= "" and prerelease or nil,
build = build ~= "" and build or nil, build = build ~= "" and build or nil,
input = version,
}, Semver) }, Semver)
end end
end end

View File

@ -9,9 +9,10 @@ local Util = require("lazy.util")
---@field version string ---@field version string
---@field dependencies string[] ---@field dependencies string[]
---@field build? {build_type?: string, modules?: any[]} ---@field build? {build_type?: string, modules?: any[]}
---@field source? {url?: string}
---@class RockManifest ---@class RockManifest
---@field repository table<string, any> ---@field repository table<string, table<string,any>>
local M = {} local M = {}

116407
manifest Normal file

File diff suppressed because it is too large Load Diff