mirror of
https://github.com/neovim/neovim.git
synced 2026-05-04 21:15:09 +00:00
fix: type fixes
Type fixes caught by emmylua
This commit is contained in:
committed by
Lewis Russell
parent
4c333fdbb7
commit
3b6084ddf4
4
runtime/lua/vim/_meta/api.lua
generated
4
runtime/lua/vim/_meta/api.lua
generated
@@ -1135,7 +1135,7 @@ function vim.api.nvim_eval(expr) end
|
||||
--- - use_tabline: (boolean) Evaluate tabline instead of statusline. When true, {winid}
|
||||
--- is ignored. Mutually exclusive with {use_winbar}.
|
||||
--- - use_statuscol_lnum: (number) Evaluate statuscolumn for this line number instead of statusline.
|
||||
--- @return table<string,any> # Dict containing statusline information, with these keys:
|
||||
--- @return vim.api.keyset.eval_statusline_ret # Dict containing statusline information, with these keys:
|
||||
--- - str: (string) Characters that will be displayed on the statusline.
|
||||
--- - width: (number) Display width of the statusline.
|
||||
--- - highlights: Array containing highlight information of the statusline. Only included when
|
||||
@@ -2538,7 +2538,7 @@ function vim.api.nvim_win_set_width(window, width) end
|
||||
--- to find out how many buffer lines beyond "start_row" take
|
||||
--- up a certain number of logical lines (returned in
|
||||
--- "end_row" and "end_vcol").
|
||||
--- @return table<string,any> # Dict containing text height information, with these keys:
|
||||
--- @return vim.api.keyset.win_text_height_ret # Dict containing text height information, with these keys:
|
||||
--- - all: The total number of screen lines occupied by the range.
|
||||
--- - fill: The number of diff filler or virtual lines among them.
|
||||
--- - end_row: The row on which the returned height is reached (first row of
|
||||
|
||||
@@ -20,7 +20,7 @@ error('Cannot require a meta file')
|
||||
--- @field hl_group? string
|
||||
--- @field hl_eol? boolean
|
||||
---
|
||||
--- @field conceal? boolean
|
||||
--- @field conceal? string
|
||||
--- @field spell? boolean
|
||||
--- @field ui_watched? boolean
|
||||
--- @field url? string
|
||||
@@ -246,3 +246,19 @@ error('Cannot require a meta file')
|
||||
--- @field range? integer[]
|
||||
--- @field count? integer
|
||||
--- @field reg? string
|
||||
|
||||
--- @class vim.api.keyset.eval_statusline_ret.highlight
|
||||
--- @field start integer
|
||||
--- @field group string
|
||||
--- @field groups string[]
|
||||
|
||||
--- @class vim.api.keyset.eval_statusline_ret
|
||||
--- @field str string
|
||||
--- @field width integer
|
||||
--- @field highlights vim.api.keyset.eval_statusline_ret.highlight[]
|
||||
|
||||
--- @class vim.api.keyset.win_text_height_ret
|
||||
--- @field all integer
|
||||
--- @field fill integer
|
||||
--- @field end_row integer
|
||||
--- @field end_vcol integer
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--- @meta
|
||||
|
||||
vim.base64 = {}
|
||||
|
||||
--- Encode {str} using Base64.
|
||||
---
|
||||
--- @param str string String to encode
|
||||
|
||||
@@ -39,6 +39,14 @@
|
||||
--- @field pos [integer, integer, integer, integer]
|
||||
--- @field file string
|
||||
|
||||
--- @class vim.fn.getmatches.ret.item
|
||||
--- @field id integer
|
||||
--- @field group string
|
||||
--- @field pattern? string
|
||||
--- @field priority integer
|
||||
--- @field conceal? string
|
||||
--- @field [string] [integer, integer, integer] all strings of format 'pos%d'
|
||||
|
||||
--- @class vim.fn.getmousepos.ret
|
||||
--- @field screenrow integer
|
||||
--- @field screencol integer
|
||||
|
||||
26
runtime/lua/vim/_meta/vimfn.lua
generated
26
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -3175,7 +3175,7 @@ function vim.fn.getcompletion(pat, type, filtered) end
|
||||
--- |winrestview()| for restoring more state.
|
||||
---
|
||||
--- @param winid? integer
|
||||
--- @return any
|
||||
--- @return [integer, integer, integer, integer, integer]
|
||||
function vim.fn.getcurpos(winid) end
|
||||
|
||||
--- Same as |getcurpos()| but the column number in the returned
|
||||
@@ -3450,7 +3450,7 @@ function vim.fn.getmarklist(buf) end
|
||||
--- <
|
||||
---
|
||||
--- @param win? integer
|
||||
--- @return any
|
||||
--- @return vim.fn.getmatches.ret.item[]
|
||||
function vim.fn.getmatches(win) end
|
||||
|
||||
--- Returns a |Dictionary| with the last known position of the
|
||||
@@ -3551,7 +3551,7 @@ function vim.fn.getpid() end
|
||||
--- Also see |getcharpos()|, |getcurpos()| and |setpos()|.
|
||||
---
|
||||
--- @param expr string
|
||||
--- @return integer[]
|
||||
--- @return [integer, integer, integer, integer]
|
||||
function vim.fn.getpos(expr) end
|
||||
|
||||
--- Returns a |List| with all the current quickfix errors. Each
|
||||
@@ -3776,9 +3776,9 @@ function vim.fn.getreginfo(regname) end
|
||||
--- \ getpos('v'), getpos('.'), #{ type: mode() })<CR>
|
||||
--- <
|
||||
---
|
||||
--- @param pos1 table
|
||||
--- @param pos2 table
|
||||
--- @param opts? table
|
||||
--- @param pos1 [integer, integer, integer, integer]
|
||||
--- @param pos2 [integer, integer, integer, integer]
|
||||
--- @param opts? {type?:string, exclusive?:boolean}
|
||||
--- @return string[]
|
||||
function vim.fn.getregion(pos1, pos2, opts) end
|
||||
|
||||
@@ -3813,10 +3813,10 @@ function vim.fn.getregion(pos1, pos2, opts) end
|
||||
--- value of 0 is used for both positions.
|
||||
--- (default: |FALSE|)
|
||||
---
|
||||
--- @param pos1 table
|
||||
--- @param pos2 table
|
||||
--- @param opts? table
|
||||
--- @return integer[][][]
|
||||
--- @param pos1 [integer, integer, integer, integer]
|
||||
--- @param pos2 [integer, integer, integer, integer]
|
||||
--- @param opts? {type?:string, exclusive?:boolean, eol?:boolean}
|
||||
--- @return [ [integer, integer, integer, integer], [integer, integer, integer, integer] ][]
|
||||
function vim.fn.getregionpos(pos1, pos2, opts) end
|
||||
|
||||
--- The result is a String, which is type of register {regname}.
|
||||
@@ -7133,7 +7133,7 @@ function vim.fn.readdir(directory, expr) end
|
||||
--- @param fname string
|
||||
--- @param type? string
|
||||
--- @param max? integer
|
||||
--- @return any
|
||||
--- @return string[]
|
||||
function vim.fn.readfile(fname, type, max) end
|
||||
|
||||
--- {func} is called for every item in {object}, which can be a
|
||||
@@ -8256,7 +8256,7 @@ function vim.fn.setloclist(nr, list, action, what) end
|
||||
--- If {win} is specified, use the window with this number or
|
||||
--- window ID instead of the current window.
|
||||
---
|
||||
--- @param list any
|
||||
--- @param list vim.fn.getmatches.ret.item[]
|
||||
--- @param win? integer
|
||||
--- @return any
|
||||
function vim.fn.setmatches(list, win) end
|
||||
@@ -10693,7 +10693,7 @@ function vim.fn.values(dict) end
|
||||
--- @param expr string|any[]
|
||||
--- @param list? boolean
|
||||
--- @param winid? integer
|
||||
--- @return any
|
||||
--- @return integer|[integer, integer]
|
||||
function vim.fn.virtcol(expr, list, winid) end
|
||||
|
||||
--- The result is a Number, which is the byte index of the
|
||||
|
||||
Reference in New Issue
Block a user