mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 14:25:32 +00:00
refactor(lua): use tuple syntax everywhere #29111
This commit is contained in:
@@ -26,13 +26,13 @@ error('Cannot require a meta file')
|
||||
--- @field url? boolean
|
||||
--- @field hl_mode? string
|
||||
---
|
||||
--- @field virt_text? {[1]: string, [2]: string}[]
|
||||
--- @field virt_text? [string, string][]
|
||||
--- @field virt_text_hide? boolean
|
||||
--- @field virt_text_repeat_linebreak? boolean
|
||||
--- @field virt_text_win_col? integer
|
||||
--- @field virt_text_pos? string
|
||||
---
|
||||
--- @field virt_lines? {[1]: string, [2]: string}[][]
|
||||
--- @field virt_lines? [string, string][][]
|
||||
--- @field virt_lines_above? boolean
|
||||
--- @field virt_lines_leftcol? boolean
|
||||
---
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
--- @field variables table<string,any>
|
||||
--- @field windows integer[]
|
||||
|
||||
--- @alias vim.fn.getjumplist.ret {[1]: vim.fn.getjumplist.ret.item[], [2]: integer}
|
||||
--- @alias vim.fn.getjumplist.ret [vim.fn.getjumplist.ret.item[], integer]
|
||||
|
||||
--- @class vim.fn.getjumplist.ret.item
|
||||
--- @field bufnr integer
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
--- ```
|
||||
---
|
||||
--- @param str string
|
||||
--- @return {[1]: string, [2]: 'bad'|'rare'|'local'|'caps', [3]: integer}[]
|
||||
--- @return [string, 'bad'|'rare'|'local'|'caps', integer][]
|
||||
--- List of tuples with three items:
|
||||
--- - The badly spelled word.
|
||||
--- - The type of the spelling error:
|
||||
|
||||
2
runtime/lua/vim/_meta/vimfn.lua
generated
2
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -9796,7 +9796,7 @@ function vim.fn.synIDtrans(synID) end
|
||||
---
|
||||
--- @param lnum integer
|
||||
--- @param col integer
|
||||
--- @return {[1]: integer, [2]: string, [3]: integer}
|
||||
--- @return [integer, string, integer]
|
||||
function vim.fn.synconcealed(lnum, col) end
|
||||
|
||||
--- Return a |List|, which is the stack of syntax items at the
|
||||
|
||||
Reference in New Issue
Block a user