Compare commits

...

13 commits

Author SHA1 Message Date
github-actions[bot]
db067881ff
chore(main): release 11.17.2 (#2064)
Some checks failed
Community / community (push) Has been skipped
Docs / docs (push) Has been skipped
CI / ci (push) Has been cancelled
🤖 I have created a release *beep* *boop*
---


##
[11.17.2](https://github.com/folke/lazy.nvim/compare/v11.17.1...v11.17.2)
(2025-10-23)


### Bug Fixes

* **luarocks:** add plugin to lua path if it was already loaded before
we know its a luarock
([147f5a3](147f5a3f55))
* **plugin:** check that path is actually in root dir. Closes
[#2075](https://github.com/folke/lazy.nvim/issues/2075)
([16e5271](16e52715b7))
* **stats:** better support for different `time_t` sizes. See
[#2049](https://github.com/folke/lazy.nvim/issues/2049)
([1ea3c40](1ea3c40857))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-23 11:49:16 +02:00
Folke Lemaitre
16e52715b7
fix(plugin): check that path is actually in root dir. Closes #2075 2025-10-23 07:04:43 +02:00
Folke Lemaitre
1ea3c40857
fix(stats): better support for different time_t sizes. See #2049
Some checks failed
Community / community (push) Has been skipped
Docs / docs (push) Has been skipped
CI / ci (push) Has been cancelled
2025-10-09 10:44:19 +02:00
Folke Lemaitre
9f559d0e9d
build: exclude stylua ignore comments from readme 2025-10-09 10:41:06 +02:00
Folke Lemaitre
4ded3ff73b
test: --offline for minit
Some checks are pending
CI / ci (push) Waiting to run
Community / community (push) Has been skipped
Docs / docs (push) Has been skipped
2025-10-08 21:26:55 +02:00
Folke Lemaitre
46e59d838f
ci: update test scripts 2025-10-08 21:26:18 +02:00
Folke Lemaitre
59334064f8
test(minit): added support for passing tests to run to mini.test
Some checks failed
Community / community (push) Has been skipped
Docs / docs (push) Has been skipped
CI / ci (push) Has been cancelled
2025-10-02 23:08:03 +02:00
Folke Lemaitre
a21b7bf2e7
test: LAZY_OFFLINE support for minit
Some checks are pending
CI / ci (push) Waiting to run
Community / community (push) Has been skipped
Docs / docs (push) Has been skipped
2025-10-02 18:41:41 +02:00
github-actions[bot]
a1380a8461 chore(build): auto-generate rockspec mappings 2025-10-02 12:50:53 +00:00
Folke Lemaitre
147f5a3f55
fix(luarocks): add plugin to lua path if it was already loaded before we know its a luarock 2025-10-02 14:50:37 +02:00
github-actions[bot]
6c3bda4aca
chore(main): release 11.17.1 (#1927)
🤖 I have created a release *beep* *boop*
---


##
[11.17.1](https://github.com/folke/lazy.nvim/compare/v11.17.0...v11.17.1)
(2025-02-25)


### Bug Fixes

* **bootstrap:** support for older Neovim versions
([1c9ba37](1c9ba37045))
* **meta:** rebuild dirty right after disable. See
[#1889](https://github.com/folke/lazy.nvim/issues/1889)
([d51cf69](d51cf69783))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-02-25 20:19:57 +01:00
Folke Lemaitre
d51cf69783
fix(meta): rebuild dirty right after disable. See #1889 2025-02-25 20:18:25 +01:00
Folke Lemaitre
1c9ba37045
fix(bootstrap): support for older Neovim versions 2025-02-25 20:02:32 +01:00
15 changed files with 66 additions and 2447 deletions

View file

@ -1,3 +1,3 @@
{
".": "11.17.0"
".": "11.17.2"
}

View file

@ -1,5 +1,22 @@
# Changelog
## [11.17.2](https://github.com/folke/lazy.nvim/compare/v11.17.1...v11.17.2) (2025-10-23)
### Bug Fixes
* **luarocks:** add plugin to lua path if it was already loaded before we know its a luarock ([147f5a3](https://github.com/folke/lazy.nvim/commit/147f5a3f55b5491bbc77a55ce846ef5eb575fa42))
* **plugin:** check that path is actually in root dir. Closes [#2075](https://github.com/folke/lazy.nvim/issues/2075) ([16e5271](https://github.com/folke/lazy.nvim/commit/16e52715b70b4d0fc6af3563ccc0ed9df82ae23e))
* **stats:** better support for different `time_t` sizes. See [#2049](https://github.com/folke/lazy.nvim/issues/2049) ([1ea3c40](https://github.com/folke/lazy.nvim/commit/1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1))
## [11.17.1](https://github.com/folke/lazy.nvim/compare/v11.17.0...v11.17.1) (2025-02-25)
### Bug Fixes
* **bootstrap:** support for older Neovim versions ([1c9ba37](https://github.com/folke/lazy.nvim/commit/1c9ba3704564a2e34a22191bb89678680ffeb245))
* **meta:** rebuild dirty right after disable. See [#1889](https://github.com/folke/lazy.nvim/issues/1889) ([d51cf69](https://github.com/folke/lazy.nvim/commit/d51cf6978321d659e68a8bc38ee806bd2517a196))
## [11.17.0](https://github.com/folke/lazy.nvim/compare/v11.16.2...v11.17.0) (2025-02-24)

View file

@ -6,6 +6,7 @@
local M = {}
function M.setup()
local uv = vim.uv or vim.loop
if vim.env.LAZY_STDPATH then
local root = vim.fn.fnamemodify(vim.env.LAZY_STDPATH, ":p"):gsub("[\\/]$", "")
for _, name in ipairs({ "config", "data", "state", "cache" }) do
@ -13,12 +14,12 @@ function M.setup()
end
end
if vim.env.LAZY_PATH and not vim.uv.fs_stat(vim.env.LAZY_PATH) then
if vim.env.LAZY_PATH and not uv.fs_stat(vim.env.LAZY_PATH) then
vim.env.LAZY_PATH = nil
end
local lazypath = vim.env.LAZY_PATH or vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.env.LAZY_PATH and not (vim.uv or vim.loop).fs_stat(lazypath) then
if not vim.env.LAZY_PATH and not uv.fs_stat(lazypath) then
vim.api.nvim_echo({
{
"Cloning lazy.nvim\n\n",

File diff suppressed because it is too large Load diff

View file

@ -242,7 +242,7 @@ function M.hererocks()
return M.options.rocks.hererocks
end
M.version = "11.17.0" -- x-release-please-version
M.version = "11.17.2" -- x-release-please-version
M.ns = vim.api.nvim_create_namespace("lazy")

View file

@ -314,6 +314,7 @@ function M:fix_disabled()
else
self:disable(plugin)
end
self:rebuild()
end
end
end
@ -321,10 +322,8 @@ function M:fix_disabled()
-- disable top-level plugins first, since they may have non-top-level frags
-- that disable other plugins
check(true)
self:rebuild()
-- then disable non-top-level plugins
check(false)
self:rebuild()
return changes
end

View file

@ -240,7 +240,7 @@ function M.update_state()
if plugin.virtual then
plugin._.is_local = true
plugin._.installed = true -- local plugins are managed by the user
elseif plugin.dir:find(Config.options.root, 1, true) == 1 then
elseif plugin.dir:find(Config.options.root .. "/", 1, true) == 1 then
plugin._.installed = installed[plugin.name] ~= nil
installed[plugin.name] = nil
else

View file

@ -61,7 +61,11 @@ end
---@return string
function M.extract(file, pattern)
local init = Util.read_file(file)
return assert(init:match(pattern))
local ret = assert(init:match(pattern)) --[[@as string]]
local lines = vim.tbl_filter(function(line)
return not line:find("^%s*%-%-%s*stylua%s*:%s*ignore%s*$")
end, vim.split(ret, "\n"))
return table.concat(lines, "\n")
end
---@return ReadmeBlock

View file

@ -25,7 +25,7 @@ M.clean = {
run = function(self, opts)
opts = opts or {}
local dir = self.plugin.dir:gsub("/+$", "")
assert(dir:find(Config.options.root, 1, true) == 1, self.plugin.dir .. " should be under packpath!")
assert(dir:find(Config.options.root .. "/", 1, true) == 1, self.plugin.dir .. " should be under packpath!")
local rock_root = Config.options.rocks.root .. "/" .. self.plugin.name
if vim.uv.fs_stat(rock_root) then

View file

@ -33,11 +33,14 @@ function M.setup(opts)
local args = {}
local is_busted = false
local is_minitest = false
local offline = vim.env.LAZY_OFFLINE == "1" or vim.env.LAZY_OFFLINE == "true"
for _, a in ipairs(_G.arg) do
if a == "--busted" then
is_busted = true
elseif a == "--minitest" then
is_minitest = true
elseif a == "--offline" then
offline = true
else
table.insert(args, a)
end
@ -62,7 +65,9 @@ function M.setup(opts)
if vim.g.colors_name == nil then
vim.cmd("colorscheme habamax")
end
require("lazy").update():wait()
if not offline then
require("lazy").update():wait()
end
if vim.bo.filetype == "lazy" then
local errors = false
for _, plugin in pairs(require("lazy.core.config").spec.plugins) do
@ -150,7 +155,7 @@ function M.minitest.setup(opts)
opts = {
collect = {
find_files = function()
return vim.fn.globpath("tests", "**/*_spec.lua", true, true)
return #_G.arg > 0 and _G.arg or vim.fn.globpath("tests", "**/*_spec.lua", true, true)
end,
},
-- script_path = "tests/minit.lua",

View file

@ -63,6 +63,9 @@ function M.update()
pkg.spec = { _raw = spec.code }
end
table.insert(ret.pkgs, pkg)
if not plugin._.pkg and plugin._.loaded and pkg.source == "rockspec" then
require("lazy.core.loader").add_to_luapath(plugin)
end
break
end
end

View file

@ -35,11 +35,10 @@ function M.cputime()
if M.C == nil then
pcall(function()
ffi.cdef([[
typedef long time_t;
typedef int clockid_t;
typedef struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
int64_t tv_sec; /* Use fixed 64-bit type for portability */
long tv_nsec; /* nanoseconds */
} nanotime;
int clock_gettime(clockid_t clk_id, struct timespec *tp);
]])
@ -48,7 +47,8 @@ function M.cputime()
end
local function real()
local pnano = assert(ffi.new("nanotime[?]", 1))
-- Zero-initialize to handle 32-bit systems where only lower 32 bits are written
local pnano = ffi.new("nanotime[1]")
local CLOCK_PROCESS_CPUTIME_ID = jit.os == "OSX" and 12 or 2
ffi.C.clock_gettime(CLOCK_PROCESS_CPUTIME_ID, pnano)
return tonumber(pnano[0].tv_sec) * 1e3 + tonumber(pnano[0].tv_nsec) / 1e6

View file

@ -1,3 +1,3 @@
#!/bin/env bash
#!/usr/bin/env bash
nvim -l tests/minit.lua --minitest
nvim -l tests/minit.lua --minitest "$@"

View file

@ -1,21 +0,0 @@
[selene]
base = "lua51"
name = "vim"
[vim]
any = true
[jit]
any = true
[assert]
any = true
[describe]
any = true
[it]
any = true
[before_each.args]
any = true

19
vim.yml Normal file
View file

@ -0,0 +1,19 @@
base: lua51
lua_versions:
- luajit
globals:
Snacks:
any: true
vim:
any: true
jit:
any: true
assert:
any: true
describe:
any: true
it:
any: true
before_each:
any: true