From 65ef6fdaeef86f8341293942c076b320acf03fd1 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Mon, 7 Sep 2026 11:43:51 +0100 Subject: build: replace LuaLS with EmmyLua Problem: LuaLS struggles with the generics used in Nvim's runtime, requiring broad diagnostic suppressions. Indexing is also slow. Solution: Use EmmyLua for type checks in the build and CI. It offers more sophisticated type checking, substantially better support for generics, and much better flow analysis. Correct the affected annotations. Use `@internal`, supported directly by EmmyLua, instead of `@nodoc` for shared internal declarations, and support it in the help parser. AI-assisted --- runtime/lua/vim/async.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua/vim/async.lua') diff --git a/runtime/lua/vim/async.lua b/runtime/lua/vim/async.lua index 8483b45add..b261e04664 100644 --- a/runtime/lua/vim/async.lua +++ b/runtime/lua/vim/async.lua @@ -288,7 +288,7 @@ function M.timeout(duration, task) timed_out = true task:close() end) - --- @diagnostic disable-next-line: invisible + --- @diagnostic disable-next-line: access-invisible timer._hidden = true local result = F.pack_len(M.pawait(task)) -- cgit