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/inspect.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/lua/vim/inspect.lua') diff --git a/runtime/lua/vim/inspect.lua b/runtime/lua/vim/inspect.lua index 5b5117cc8f..1c1dbf4ebe 100644 --- a/runtime/lua/vim/inspect.lua +++ b/runtime/lua/vim/inspect.lua @@ -79,6 +79,10 @@ else end end +-- The constructor, writer and renderer always use the same buffer backend. +--- @cast puts fun(buf: string.buffer|{ [integer]: string, n: integer }, str: string) +--- @cast render fun(buf: string.buffer|{ [integer]: string, n: integer }): string + local _rawget if rawget then _rawget = rawget -- cgit