aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp/helpers.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-03-25 19:06:28 +0000
committerLewis Russell <me@lewisr.dev>2024-03-25 21:09:57 +0000
commita7bbda121d035d050b449b4dc63bd6ae027e248d (patch)
treefb31bb2003624b57aee5a0b740822d8b8ca76e5a /test/functional/plugin/lsp/helpers.lua
parent3fd8292aaf215a17c3803ed84bc3b9dfd4931294 (diff)
downloadrneovim-a7bbda121d035d050b449b4dc63bd6ae027e248d.tar.gz
rneovim-a7bbda121d035d050b449b4dc63bd6ae027e248d.tar.bz2
rneovim-a7bbda121d035d050b449b4dc63bd6ae027e248d.zip
fix(test): typing
Diffstat (limited to 'test/functional/plugin/lsp/helpers.lua')
-rw-r--r--test/functional/plugin/lsp/helpers.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/plugin/lsp/helpers.lua b/test/functional/plugin/lsp/helpers.lua
index 97fa108500..376de66c51 100644
--- a/test/functional/plugin/lsp/helpers.lua
+++ b/test/functional/plugin/lsp/helpers.lua
@@ -128,6 +128,18 @@ local function fake_lsp_server_setup(test_name, timeout_ms, options, settings)
)
end
+--- @class test.lsp.Config
+--- @field test_name string
+--- @field timeout_ms? integer
+--- @field options? table
+--- @field settings? table
+---
+--- @field on_setup? fun()
+--- @field on_init? fun(client: vim.lsp.Client, ...)
+--- @field on_handler? fun(...)
+--- @field on_exit? fun(code: integer, signal: integer)
+
+--- @param config test.lsp.Config
function M.test_rpc_server(config)
if config.test_name then
M.clear_notrace()
@@ -158,6 +170,7 @@ function M.test_rpc_server(config)
end
end,
})
+ --- @type integer, integer
local code, signal
local function on_request(method, args)
if method == 'init' then