Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit ce25624

Browse files
chore: auto-generated types for Neovim nightly
1 parent 718e45e commit ce25624

File tree

5 files changed

+84
-58
lines changed

5 files changed

+84
-58
lines changed

types/nightly/options.1.lua

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
---@meta
22

3-
-- `'colorcolumn'` `'cc'` string (default "")
4-
-- local to window
5-
-- `'colorcolumn'` is a comma-separated list of screen columns that are
6-
-- highlighted with ColorColumn |hl-ColorColumn|. Useful to align
7-
-- text. Will make screen redrawing slower.
8-
-- The screen column can be an absolute number, or a number preceded with
9-
-- `'+'` or `'-'` , which is added to or subtracted from `'textwidth'` . >
10-
--
11-
-- :set cc=+1 " highlight column after `'textwidth'`
12-
-- :set cc=+1,+2,+3 " highlight three columns after `'textwidth'`
13-
-- :hi ColorColumn ctermbg=lightgrey guibg=lightgrey
14-
-- <
15-
-- When `'textwidth'` is zero then the items with `'-'` and `'+'` are not used.
16-
-- A maximum of 256 columns are highlighted.
17-
vim.wo.colorcolumn = ""
18-
vim.wo.cc = vim.wo.colorcolumn
193
-- `'concealcursor'` `'cocu'` string (default: "")
204
-- local to window
215
-- Sets the modes in which text in the cursor line can also be concealed.
@@ -2494,14 +2478,6 @@ vim.bo.wrapmargin = 0
24942478
vim.bo.wm = vim.bo.wrapmargin
24952479

24962480

2497-
-- `'aleph'` `'al'` number (default 224)
2498-
-- global
2499-
-- The ASCII code for the first letter of the Hebrew alphabet. The
2500-
-- routine that maps the keyboard in Hebrew mode, both in Insert mode
2501-
-- (when hkmap is set) and on the command-line (when hitting CTRL-_)
2502-
-- outputs the Hebrew characters in the range [aleph..aleph+26].
2503-
-- aleph=128 applies to PC code, and aleph=224 applies to ISO 8859-8.
2504-
-- See |rileft.txt|.
25052481
--- @class vim.opt.aleph: vim.Option,number
25062482
--- @operator add: vim.opt.aleph
25072483
--- @operator sub: vim.opt.aleph

types/nightly/options.2.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,11 +1552,6 @@ vim.opt.hi = vim.opt.history
15521552
--- @return number
15531553
function vim.opt.history:get()end
15541554

1555-
-- `'hkmap'` `'hk'` boolean (default off)
1556-
-- global
1557-
-- When on, the keyboard is mapped for the Hebrew character set.
1558-
-- Normally you would set `'allowrevins'` and use CTRL-_ in insert mode to
1559-
-- toggle this option. See |rileft.txt|.
15601555
--- @class vim.opt.hkmap: vim.Option,boolean
15611556
--- @operator add: vim.opt.hkmap
15621557
--- @operator sub: vim.opt.hkmap
@@ -1566,11 +1561,6 @@ vim.opt.hk = vim.opt.hkmap
15661561
--- @return boolean
15671562
function vim.opt.hkmap:get()end
15681563

1569-
-- `'hkmapp'` `'hkp'` boolean (default off)
1570-
-- global
1571-
-- When on, phonetic keyboard mapping is used. `'hkmap'` must also be on.
1572-
-- This is useful if you have a non-Hebrew keyboard.
1573-
-- See |rileft.txt|.
15741564
--- @class vim.opt.hkmapp: vim.Option,boolean
15751565
--- @operator add: vim.opt.hkmapp
15761566
--- @operator sub: vim.opt.hkmapp

types/nightly/options.lua

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
---@class vim.go
44
vim.go = {}
55

6-
-- `'aleph'` `'al'` number (default 224)
7-
-- global
8-
-- The ASCII code for the first letter of the Hebrew alphabet. The
9-
-- routine that maps the keyboard in Hebrew mode, both in Insert mode
10-
-- (when hkmap is set) and on the command-line (when hitting CTRL-_)
11-
-- outputs the Hebrew characters in the range [aleph..aleph+26].
12-
-- aleph=128 applies to PC code, and aleph=224 applies to ISO 8859-8.
13-
-- See |rileft.txt|.
146
vim.go.aleph = 224
157
vim.go.al = vim.go.aleph
168
-- `'allowrevins'` `'ari'` boolean (default off)
@@ -1632,18 +1624,8 @@ vim.go.hl = vim.go.highlight
16321624
-- The maximum value is 10000.
16331625
vim.go.history = 10000
16341626
vim.go.hi = vim.go.history
1635-
-- `'hkmap'` `'hk'` boolean (default off)
1636-
-- global
1637-
-- When on, the keyboard is mapped for the Hebrew character set.
1638-
-- Normally you would set `'allowrevins'` and use CTRL-_ in insert mode to
1639-
-- toggle this option. See |rileft.txt|.
16401627
vim.go.hkmap = false
16411628
vim.go.hk = vim.go.hkmap
1642-
-- `'hkmapp'` `'hkp'` boolean (default off)
1643-
-- global
1644-
-- When on, phonetic keyboard mapping is used. `'hkmap'` must also be on.
1645-
-- This is useful if you have a non-Hebrew keyboard.
1646-
-- See |rileft.txt|.
16471629
vim.go.hkmapp = false
16481630
vim.go.hkp = vim.go.hkmapp
16491631
-- `'hlsearch'` `'hls'` boolean (default on)
@@ -4312,3 +4294,19 @@ vim.wo.bri = vim.wo.breakindent
43124294
-- (default: off)
43134295
vim.wo.breakindentopt = ""
43144296
vim.wo.briopt = vim.wo.breakindentopt
4297+
-- `'colorcolumn'` `'cc'` string (default "")
4298+
-- local to window
4299+
-- `'colorcolumn'` is a comma-separated list of screen columns that are
4300+
-- highlighted with ColorColumn |hl-ColorColumn|. Useful to align
4301+
-- text. Will make screen redrawing slower.
4302+
-- The screen column can be an absolute number, or a number preceded with
4303+
-- `'+'` or `'-'` , which is added to or subtracted from `'textwidth'` . >
4304+
--
4305+
-- :set cc=+1 " highlight column after `'textwidth'`
4306+
-- :set cc=+1,+2,+3 " highlight three columns after `'textwidth'`
4307+
-- :hi ColorColumn ctermbg=lightgrey guibg=lightgrey
4308+
-- <
4309+
-- When `'textwidth'` is zero then the items with `'-'` and `'+'` are not used.
4310+
-- A maximum of 256 columns are highlighted.
4311+
vim.wo.colorcolumn = ""
4312+
vim.wo.cc = vim.wo.colorcolumn

types/nightly/vim.fn.1.lua

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -760,10 +760,36 @@ function vim.fn.rand(expr) end
760760
function vim.fn.range(expr, max, stride) end
761761

762762
-- Read file {fname} in binary mode and return a |Blob|.
763+
-- If {offset} is specified, read the file from the specified
764+
-- offset. If it is a negative value, it is used as an offset
765+
-- from the end of the file. E.g., to read the last 12 bytes:
766+
-- ```vim
767+
-- readblob('file.bin', -12)
768+
-- ```
769+
-- If {size} is specified, only the specified size will be read.
770+
-- E.g. to read the first 100 bytes of a file:
771+
-- ```vim
772+
-- readblob('file.bin', 0, 100)
773+
-- ```
774+
-- If {size} is -1 or omitted, the whole data starting from
775+
-- {offset} will be read.
776+
-- This can be also used to read the data from a character device
777+
-- on Unix when {size} is explicitly set. Only if the device
778+
-- supports seeking {offset} can be used. Otherwise it should be
779+
-- zero. E.g. to read 10 bytes from a serial console:
780+
-- ```vim
781+
-- readblob('/dev/ttyS0', 0, 10)
782+
-- ```
763783
-- When the file can't be opened an error message is given and
764784
-- the result is an empty |Blob|.
785+
-- When the offset is beyond the end of the file the result is an
786+
-- empty blob.
787+
-- When trying to read more bytes than are available the result
788+
-- is truncated.
765789
-- Also see |readfile()| and |writefile()|.
766-
function vim.fn.readblob(fname) end
790+
--- @param offset? any
791+
--- @param size? any
792+
function vim.fn.readblob(fname, offset, size) end
767793

768794
-- Return a list with file and directory names in {directory}.
769795
-- You can also use |glob()| if you don't need to do complicated
@@ -989,8 +1015,8 @@ function vim.fn.rename(from, to) end
9891015
-- :let separator = repeat('-', 80)
9901016
-- ```
9911017
-- When {count} is zero or negative the result is empty.
992-
-- When {expr} is a |List| the result is {expr} concatenated
993-
-- {count} times. Example:
1018+
-- When {expr} is a |List| or a |Blob| the result is {expr}
1019+
-- concatenated {count} times. Example:
9941020
-- ```vim
9951021
-- :let longlist = repeat(['a', 'b'], 3)
9961022
-- ```
@@ -1000,7 +1026,7 @@ function vim.fn.rename(from, to) end
10001026
-- ```vim
10011027
-- mylist->repeat(count)
10021028
-- ```
1003-
--- @return string
1029+
--- @return any[]
10041030
vim.fn["repeat"] = function(expr, count) end
10051031

10061032
-- On MS-Windows, when {filename} is a shortcut (a .lnk file),
@@ -3906,6 +3932,8 @@ function vim.fn.timer_pause(timer, paused) end
39063932
-- {time} is the waiting time in milliseconds. This is the
39073933
-- minimum time before invoking the callback. When the system is
39083934
-- busy or Vim is not waiting for input the time will be longer.
3935+
-- Zero can be used to execute the callback when Vim is back in
3936+
-- the main loop.
39093937
--
39103938
-- {callback} is the function to call. It can be the name of a
39113939
-- function or a |Funcref|. It is called with one argument, which

types/nightly/vim.fn.lua

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,22 @@ function vim.fn.atan(expr) end
315315
--- @return float
316316
function vim.fn.atan2(expr1, expr2) end
317317

318+
-- Return a List containing the number value of each byte in Blob
319+
-- {blob}. Examples:
320+
-- ```vim
321+
-- blob2list(0z0102.0304) returns [1, 2, 3, 4]
322+
-- blob2list(0z) returns []
323+
-- ```
324+
-- Returns an empty List on error. |list2blob()| does the
325+
-- opposite.
326+
--
327+
-- Can also be used as a |method|:
328+
-- ```vim
329+
-- GetBlob()->blob2list()
330+
-- ```
331+
--- @return any[]
332+
function vim.fn.blob2list(blob) end
333+
318334
-- Put up a file requester. This only works when "has("browse")"
319335
-- returns |TRUE| (only in some GUI versions).
320336
-- The input fields are:
@@ -1940,8 +1956,7 @@ function vim.fn.extend(expr1, expr2, expr3) end
19401956

19411957
-- Like |extend()| but instead of adding items to {expr1} a new
19421958
-- List or Dictionary is created and returned. {expr1} remains
1943-
-- unchanged. Items can still be changed by {expr2}, if you
1944-
-- don't want that use |deepcopy()| first.
1959+
-- unchanged.
19451960
--- @param expr3? any
19461961
--- @return any[]
19471962
function vim.fn.extendnew(expr1, expr2, expr3) end
@@ -3996,6 +4011,7 @@ function vim.fn.globpath(path, expr, nosuf, list, allinks) end
39964011
-- clipboard |clipboard| provider is available.
39974012
-- fname_case Case in file names matters (for Darwin and MS-Windows
39984013
-- this is not present).
4014+
-- gui_running Nvim has a GUI.
39994015
-- iconv Can use |iconv()| for conversion.
40004016
-- linux Linux system.
40014017
-- mac MacOS system.
@@ -5082,6 +5098,24 @@ function vim.fn.line2byte(lnum) end
50825098
--- @return number
50835099
function vim.fn.lispindent(lnum) end
50845100

5101+
-- Return a Blob concatenating all the number values in {list}.
5102+
-- Examples:
5103+
-- ```vim
5104+
-- list2blob([1, 2, 3, 4]) returns 0z01020304
5105+
-- list2blob([]) returns 0z
5106+
-- ```
5107+
-- Returns an empty Blob on error. If one of the numbers is
5108+
-- negative or more than 255 error is given.
5109+
--
5110+
-- |blob2list()| does the opposite.
5111+
--
5112+
-- Can also be used as a |method|:
5113+
-- ```vim
5114+
-- GetList()->list2blob()
5115+
-- ```
5116+
--- @param list any[]
5117+
function vim.fn.list2blob(list) end
5118+
50855119
-- Convert each number in {list} to a character string can
50865120
-- concatenate them all. Examples:
50875121
-- ```vim

0 commit comments

Comments
 (0)