From ffa782066c2e02a068171963aded4bb300c25663 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Fri, 25 Sep 2026 17:07:21 +0100 Subject: fix(lua): enable assignment type checking in runtime code Enable EmmyLua's assign-type-mismatch diagnostic after correcting the runtime annotations and assignments it flags. Correct option, tuple, and return types, and use separate locals when a value changes representation. Add guards and narrow casts where needed so the runtime passes the stricter check. Regenerate the affected docs. AI-assisted --- runtime/lua/vim/pack.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/pack.lua') diff --git a/runtime/lua/vim/pack.lua b/runtime/lua/vim/pack.lua index fa710c3c81..4dd0aabd13 100644 --- a/runtime/lua/vim/pack.lua +++ b/runtime/lua/vim/pack.lua @@ -1473,7 +1473,7 @@ function M.update(names, opts) lock_read() -- Infer update details - local needs_lock_write = opts.force --- @type boolean + local needs_lock_write = opts.force or false --- @async --- @param p vim.pack.Plug -- cgit