aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIlia Choly <ilia.choly@gmail.com>2024-06-04 09:06:02 -0400
committerGitHub <noreply@github.com>2024-06-04 06:06:02 -0700
commit8cbb1f20e557461c8417583a7f69d53aaaef920b (patch)
tree7b24c7e171b712d77fa74ebc13e8541dd663393f /test
parent61025c9e7aa41dae11422162a54cc7696f7e783e (diff)
downloadrneovim-8cbb1f20e557461c8417583a7f69d53aaaef920b.tar.gz
rneovim-8cbb1f20e557461c8417583a7f69d53aaaef920b.tar.bz2
rneovim-8cbb1f20e557461c8417583a7f69d53aaaef920b.zip
refactor(lua): use tuple syntax everywhere #29111
Diffstat (limited to 'test')
-rw-r--r--test/functional/plugin/lsp/completion_spec.lua2
-rw-r--r--test/functional/testnvim.lua2
-rw-r--r--test/functional/ui/screen.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/plugin/lsp/completion_spec.lua b/test/functional/plugin/lsp/completion_spec.lua
index d8a3e0acbd..0e81e4fddb 100644
--- a/test/functional/plugin/lsp/completion_spec.lua
+++ b/test/functional/plugin/lsp/completion_spec.lua
@@ -443,7 +443,7 @@ describe('vim.lsp.completion: protocol', function()
end)
end
- --- @param pos { [1]: integer, [2]: integer }
+ --- @param pos [integer, integer]
local function trigger_at_pos(pos)
exec_lua(
[[
diff --git a/test/functional/testnvim.lua b/test/functional/testnvim.lua
index 6b858e4d69..746c7290ef 100644
--- a/test/functional/testnvim.lua
+++ b/test/functional/testnvim.lua
@@ -256,7 +256,7 @@ end
--- @param notification_cb function?
--- @param setup_cb function?
--- @param timeout integer
---- @return {[1]: integer, [2]: string}
+--- @return [integer, string]
function M.run_session(lsession, request_cb, notification_cb, setup_cb, timeout)
local on_request --- @type function?
local on_notification --- @type function?
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index f8e95f7d88..932ddb070a 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -438,7 +438,7 @@ end
--- @field mouse_enabled? boolean
---
--- @field win_viewport? table<integer,table<string,integer>>
---- @field float_pos? {[1]:integer,[2]:integer}
+--- @field float_pos? [integer,integer]
--- @field hl_groups? table<string,integer>
---
--- The following keys should be used to expect the state of various ext_