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/_shared.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/diagnostic/_shared.lua') diff --git a/runtime/lua/vim/diagnostic/_shared.lua b/runtime/lua/vim/diagnostic/_shared.lua index 6eef6657bb..499bd56436 100644 --- a/runtime/lua/vim/diagnostic/_shared.lua +++ b/runtime/lua/vim/diagnostic/_shared.lua @@ -47,7 +47,7 @@ function M.get_logical_pos(diagnostic) return diagnostic.lnum, diagnostic.col, diagnostic.end_lnum, diagnostic.end_col, true end - local ns = vim.diagnostic.get_namespace(diagnostic.namespace) + local ns = vim.diagnostic.get_namespace(assert(diagnostic.namespace)) local extmark = api.nvim_buf_get_extmark_by_id( diagnostic.bufnr, ns.user_data.location_ns, -- cgit