mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
refactor(lua): use tuple syntax everywhere #29111
This commit is contained in:
@@ -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(
|
||||
[[
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user