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/uri.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/uri.lua') diff --git a/runtime/lua/vim/uri.lua b/runtime/lua/vim/uri.lua index 51e8de7947..bfc0c342cb 100644 --- a/runtime/lua/vim/uri.lua +++ b/runtime/lua/vim/uri.lua @@ -64,7 +64,7 @@ function M.uri_from_fname(path) local is_windows = volume_path ~= nil if is_windows then assert(fname) - path = volume_path .. M.uri_encode(fname:gsub('\\', '/')) + path = volume_path .. M.uri_encode((fname:gsub('\\', '/'))) else path = M.uri_encode(path) end -- cgit