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/_inspector.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/_inspector.lua') diff --git a/runtime/lua/vim/_inspector.lua b/runtime/lua/vim/_inspector.lua index 49a99c4db8..592051698d 100644 --- a/runtime/lua/vim/_inspector.lua +++ b/runtime/lua/vim/_inspector.lua @@ -117,9 +117,9 @@ function vim.inspect_pos(buf, row, col, filter) end --- Convert an extmark tuple into a table - --- @param extmark [integer, integer, integer, vim.api.keyset.extmark_details] + --- @param extmark vim.api.keyset.get_extmark_item local function to_map(extmark) - local opts = resolve_hl(extmark[4]) + local opts = resolve_hl(assert(extmark[4])) return { id = extmark[1], row = extmark[2], -- cgit