From c6535538f8717a8f6134020a5bee65341cf8280f Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 28 Sep 2026 14:19:42 +0100 Subject: fix(lua): enable param-type-mismatch diagnostic Problem: Argument type mismatches are excluded from EmmyLua checks. Solution: Correct runtime annotations and calls, document local checker workarounds, and enable the diagnostic. AI-assisted --- runtime/lua/vim/diagnostic/_float.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/diagnostic/_float.lua') diff --git a/runtime/lua/vim/diagnostic/_float.lua b/runtime/lua/vim/diagnostic/_float.lua index 64732c49a5..2cca7784ba 100644 --- a/runtime/lua/vim/diagnostic/_float.lua +++ b/runtime/lua/vim/diagnostic/_float.lua @@ -49,7 +49,7 @@ function M.open(opts, ...) end opts = opts or {} - bufnr = vim._resolve_bufnr(bufnr or opts.bufnr) + bufnr = vim._resolve_bufnr((bufnr or opts.bufnr) --[[@as integer?]]) local global_opts --- @type vim.diagnostic.Opts opts, global_opts = resolve_float_opts(opts, bufnr) -- cgit