mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
docs: type fixes #34831
This commit is contained in:
@ -2074,7 +2074,7 @@ vim.islist({t}) *vim.islist()*
|
||||
|rpcrequest()| or |vim.fn|.
|
||||
|
||||
Parameters: ~
|
||||
• {t} (`table?`)
|
||||
• {t} (`any?`)
|
||||
|
||||
Return: ~
|
||||
(`boolean`) `true` if list-like table, else `false`.
|
||||
|
6
runtime/lua/vim/_meta/api_keysets.lua
generated
6
runtime/lua/vim/_meta/api_keysets.lua
generated
@ -246,12 +246,12 @@ error('Cannot require a meta file')
|
||||
--- @field end_col? integer
|
||||
--- @field hl_group? any
|
||||
--- @field virt_text? any[]
|
||||
--- @field virt_text_pos? string
|
||||
--- @field virt_text_pos? "eol"|"eol_right_align"|"overlay"|"right_align"|"inline"
|
||||
--- @field virt_text_win_col? integer
|
||||
--- @field virt_text_hide? boolean
|
||||
--- @field virt_text_repeat_linebreak? boolean
|
||||
--- @field hl_eol? boolean
|
||||
--- @field hl_mode? string
|
||||
--- @field hl_mode? "replace"|"combine"|"blend"
|
||||
--- @field invalidate? boolean
|
||||
--- @field ephemeral? boolean
|
||||
--- @field priority? integer
|
||||
@ -260,7 +260,7 @@ error('Cannot require a meta file')
|
||||
--- @field virt_lines? any[]
|
||||
--- @field virt_lines_above? boolean
|
||||
--- @field virt_lines_leftcol? boolean
|
||||
--- @field virt_lines_overflow? string
|
||||
--- @field virt_lines_overflow? "trunc"|"scroll"
|
||||
--- @field strict? boolean
|
||||
--- @field sign_text? string
|
||||
--- @field sign_hl_group? integer|string
|
||||
|
@ -153,7 +153,7 @@
|
||||
--- list number in the quickfix stack; zero
|
||||
--- means the current quickfix list and "$" means
|
||||
--- the last quickfix list.
|
||||
--- @field nr? integer
|
||||
--- @field nr? integer|'$'
|
||||
---
|
||||
--- function to get the text to display in the
|
||||
--- quickfix window. The value can be the name of
|
||||
|
@ -688,7 +688,7 @@ end
|
||||
---
|
||||
---@see |vim.isarray()|
|
||||
---
|
||||
---@param t? table
|
||||
---@param t? any
|
||||
---@return boolean `true` if list-like table, else `false`.
|
||||
function vim.islist(t)
|
||||
if type(t) ~= 'table' then
|
||||
|
@ -32,12 +32,12 @@ typedef struct {
|
||||
Integer end_col;
|
||||
Object hl_group;
|
||||
Array virt_text;
|
||||
String virt_text_pos;
|
||||
Enum("eol", "eol_right_align", "overlay", "right_align", "inline") virt_text_pos;
|
||||
Integer virt_text_win_col;
|
||||
Boolean virt_text_hide;
|
||||
Boolean virt_text_repeat_linebreak;
|
||||
Boolean hl_eol;
|
||||
String hl_mode;
|
||||
Enum("replace", "combine", "blend") hl_mode;
|
||||
Boolean invalidate;
|
||||
Boolean ephemeral;
|
||||
Integer priority;
|
||||
@ -46,7 +46,7 @@ typedef struct {
|
||||
Array virt_lines;
|
||||
Boolean virt_lines_above;
|
||||
Boolean virt_lines_leftcol;
|
||||
String virt_lines_overflow;
|
||||
Enum("trunc", "scroll") virt_lines_overflow;
|
||||
Boolean strict;
|
||||
String sign_text;
|
||||
HLGroupID sign_hl_group;
|
||||
|
Reference in New Issue
Block a user