aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/async/_queue.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2026-09-07 11:43:51 +0100
committerLewis Russell <me@lewisr.dev>2026-09-07 15:33:22 +0100
commit65ef6fdaeef86f8341293942c076b320acf03fd1 (patch)
tree8cc53d5edb74640ba17e3c2bf0a3d9c9b959071b /runtime/lua/vim/async/_queue.lua
parentcd52c77cd5ad87ab4950946e0a51a8e13b53b4f5 (diff)
downloadrneovim-65ef6fdaeef86f8341293942c076b320acf03fd1.tar.gz
rneovim-65ef6fdaeef86f8341293942c076b320acf03fd1.tar.bz2
rneovim-65ef6fdaeef86f8341293942c076b320acf03fd1.zip
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
Diffstat (limited to 'runtime/lua/vim/async/_queue.lua')
-rw-r--r--runtime/lua/vim/async/_queue.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/lua/vim/async/_queue.lua b/runtime/lua/vim/async/_queue.lua
index 5a2d9b4952..2476f8f3a3 100644
--- a/runtime/lua/vim/async/_queue.lua
+++ b/runtime/lua/vim/async/_queue.lua
@@ -1,6 +1,3 @@
--- LuaLS cannot model the generic annotations used by this vendored implementation.
----@diagnostic disable: no-unknown, undefined-doc-name, luadoc-miss-symbol, missing-return, missing-return-value, param-type-mismatch, return-type-mismatch, redundant-return-value, undefined-field, need-check-nil, await-in-sync
-
local new_event = require('vim.async._event')
--- An optionally bounded FIFO queue for passing values between async tasks.