mirror of
https://github.com/neovim/neovim.git
synced 2026-04-05 07:09:23 +00:00
refactor(lua): use tuple syntax everywhere #29111
This commit is contained in:
@@ -30,7 +30,7 @@ local buf_handles = {}
|
||||
--- @nodoc
|
||||
--- @class vim.lsp.completion.Context
|
||||
local Context = {
|
||||
cursor = nil, --- @type { [1]: integer, [2]: integer }?
|
||||
cursor = nil, --- @type [integer, integer]?
|
||||
last_request_time = nil, --- @type integer?
|
||||
pending_requests = {}, --- @type function[]
|
||||
isIncomplete = false,
|
||||
|
||||
@@ -348,7 +348,7 @@ api.nvim_set_decoration_provider(namespace, {
|
||||
text = text .. part.value
|
||||
end
|
||||
end
|
||||
local vt = {} --- @type {[1]: string, [2]: string?}[]
|
||||
local vt = {} --- @type [string, string?][]
|
||||
if hint.paddingLeft then
|
||||
vt[#vt + 1] = { ' ' }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user