diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2026-09-25 17:07:21 +0100 |
|---|---|---|
| committer | Lewis Russell <lewis6991@gmail.com> | 2026-09-25 17:07:21 +0100 |
| commit | ffa782066c2e02a068171963aded4bb300c25663 (patch) | |
| tree | 9d8bfec14e7f28909af9981b5228c7b51f841b3d /runtime/lua/vim/pack.lua | |
| parent | 7e8ad7c52ac28c01563128d8f43996512676324c (diff) | |
| download | rneovim-ffa782066c2e02a068171963aded4bb300c25663.tar.gz rneovim-ffa782066c2e02a068171963aded4bb300c25663.tar.bz2 rneovim-ffa782066c2e02a068171963aded4bb300c25663.zip | |
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
Diffstat (limited to 'runtime/lua/vim/pack.lua')
| -rw-r--r-- | runtime/lua/vim/pack.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |