Skip to content

Commit ade802c

Browse files
authored
Merge pull request #45 from vim-denops/fix-gen-functions
Fix `gen-function`
2 parents 4649885 + ea53aef commit ade802c

File tree

4 files changed

+65
-0
lines changed

4 files changed

+65
-0
lines changed

denops_std/function/_generated.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export function argc(denops: Denops, ...args: unknown[]): Promise<unknown> {
149149
* The result is the current index in the argument list. 0 is
150150
* the first file. argc() - 1 is the last one. See |arglist|.
151151
*/
152+
export function argidx(denops: Denops): Promise<unknown>;
152153
export function argidx(denops: Denops, ...args: unknown[]): Promise<unknown> {
153154
return denops.call("argidx", ...args);
154155
}
@@ -431,6 +432,7 @@ export function ceil(denops: Denops, ...args: unknown[]): Promise<unknown> {
431432
* redo it is the number of the redone change. After undo it is
432433
* one less than the number of the undone change.
433434
*/
435+
export function changenr(denops: Denops): Promise<unknown>;
434436
export function changenr(denops: Denops, ...args: unknown[]): Promise<unknown> {
435437
return denops.call("changenr", ...args);
436438
}
@@ -603,6 +605,7 @@ export function complete_add(
603605
* Only to be used by the function specified with the
604606
* 'completefunc' option.
605607
*/
608+
export function complete_check(denops: Denops): Promise<unknown>;
606609
export function complete_check(
607610
denops: Denops,
608611
...args: unknown[]
@@ -983,6 +986,7 @@ export function deletebufline(
983986
* editing another buffer to set 'filetype' and load a syntax
984987
* file.
985988
*/
989+
export function did_filetype(denops: Denops): Promise<unknown>;
986990
export function did_filetype(
987991
denops: Denops,
988992
...args: unknown[]
@@ -1042,6 +1046,7 @@ export function diff_hlID(
10421046
* use this:
10431047
* :echo index(keys(environ()), 'HOME', 0, 1) != -1
10441048
*/
1049+
export function environ(denops: Denops): Promise<unknown>;
10451050
export function environ(denops: Denops, ...args: unknown[]): Promise<unknown> {
10461051
return denops.call("environ", ...args);
10471052
}
@@ -1105,6 +1110,7 @@ export function eval_(denops: Denops, ...args: unknown[]): Promise<unknown> {
11051110
* e.g., when dropping a file on Vim. This means interactive
11061111
* commands cannot be used. Otherwise zero is returned.
11071112
*/
1113+
export function eventhandler(denops: Denops): Promise<unknown>;
11081114
export function eventhandler(
11091115
denops: Denops,
11101116
...args: unknown[]
@@ -1732,6 +1738,7 @@ export function foldlevel(
17321738
* setting.
17331739
* {not available when compiled without the |+folding| feature}
17341740
*/
1741+
export function foldtext(denops: Denops): Promise<unknown>;
17351742
export function foldtext(denops: Denops, ...args: unknown[]): Promise<unknown> {
17361743
return denops.call("foldtext", ...args);
17371744
}
@@ -1765,6 +1772,7 @@ export function foldtextresult(
17651772
* {only in the Win32, Athena, Motif and GTK GUI versions and the
17661773
* Win32 console version}
17671774
*/
1775+
export function foreground(denops: Denops): Promise<unknown>;
17681776
export function foreground(
17691777
denops: Denops,
17701778
...args: unknown[]
@@ -2129,6 +2137,7 @@ export function getchar(denops: Denops, ...args: unknown[]): Promise<unknown> {
21292137
* character itself are obtained. Thus Shift-a results in "A"
21302138
* without a modifier.
21312139
*/
2140+
export function getcharmod(denops: Denops): Promise<unknown>;
21322141
export function getcharmod(
21332142
denops: Denops,
21342143
...args: unknown[]
@@ -2154,6 +2163,7 @@ export function getcharmod(
21542163
* :nnoremap <expr> , getcharsearch().forward ? ',' : ';'
21552164
* Also see |setcharsearch()|.
21562165
*/
2166+
export function getcharsearch(denops: Denops): Promise<unknown>;
21572167
export function getcharsearch(
21582168
denops: Denops,
21592169
...args: unknown[]
@@ -2170,6 +2180,7 @@ export function getcharsearch(
21702180
* Returns an empty string when entering a password or using
21712181
* |inputsecret()|.
21722182
*/
2183+
export function getcmdline(denops: Denops): Promise<unknown>;
21732184
export function getcmdline(
21742185
denops: Denops,
21752186
...args: unknown[]
@@ -2185,6 +2196,7 @@ export function getcmdline(
21852196
* Returns 0 otherwise.
21862197
* Also see |getcmdtype()|, |setcmdpos()| and |getcmdline()|.
21872198
*/
2199+
export function getcmdpos(denops: Denops): Promise<unknown>;
21882200
export function getcmdpos(
21892201
denops: Denops,
21902202
...args: unknown[]
@@ -2207,6 +2219,7 @@ export function getcmdpos(
22072219
* Returns an empty string otherwise.
22082220
* Also see |getcmdpos()|, |setcmdpos()| and |getcmdline()|.
22092221
*/
2222+
export function getcmdtype(denops: Denops): Promise<unknown>;
22102223
export function getcmdtype(
22112224
denops: Denops,
22122225
...args: unknown[]
@@ -2219,6 +2232,7 @@ export function getcmdtype(
22192232
* values are the same as |getcmdtype()|. Returns an empty string
22202233
* when not in the command-line window.
22212234
*/
2235+
export function getcmdwintype(denops: Denops): Promise<unknown>;
22222236
export function getcmdwintype(
22232237
denops: Denops,
22242238
...args: unknown[]
@@ -2301,6 +2315,7 @@ export function getcompletion(
23012315
* Note that this only works within the window. See
23022316
* |winrestview()| for restoring more state.
23032317
*/
2318+
export function getcurpos(denops: Denops): Promise<unknown>;
23042319
export function getcurpos(
23052320
denops: Denops,
23062321
...args: unknown[]
@@ -2562,6 +2577,7 @@ export function getmatches(
25622577
* On Unix and MS-Windows this is a unique number, until Vim
25632578
* exits. On MS-DOS it's always zero.
25642579
*/
2580+
export function getpid(denops: Denops): Promise<unknown>;
25652581
export function getpid(denops: Denops, ...args: unknown[]): Promise<unknown> {
25662582
return denops.call("getpid", ...args);
25672583
}
@@ -2943,6 +2959,7 @@ export function getwinpos(
29432959
* The result will be -1 if the information is not available.
29442960
* The value can be used with `:winpos`.
29452961
*/
2962+
export function getwinposx(denops: Denops): Promise<unknown>;
29462963
export function getwinposx(
29472964
denops: Denops,
29482965
...args: unknown[]
@@ -2957,6 +2974,7 @@ export function getwinposx(
29572974
* The result will be -1 if the information is not available.
29582975
* The value can be used with `:winpos`.
29592976
*/
2977+
export function getwinposy(denops: Denops): Promise<unknown>;
29602978
export function getwinposy(
29612979
denops: Denops,
29622980
...args: unknown[]
@@ -3340,6 +3358,7 @@ export function hlID(denops: Denops, ...args: unknown[]): Promise<unknown> {
33403358
* which Vim is currently running. Machine names greater than
33413359
* 256 characters long are truncated.
33423360
*/
3361+
export function hostname(denops: Denops): Promise<unknown>;
33433362
export function hostname(denops: Denops, ...args: unknown[]): Promise<unknown> {
33443363
return denops.call("hostname", ...args);
33453364
}
@@ -3504,6 +3523,7 @@ export function inputlist(
35043523
* called. Calling it more often is harmless though.
35053524
* Returns 1 when there is nothing to restore, 0 otherwise.
35063525
*/
3526+
export function inputrestore(denops: Denops): Promise<unknown>;
35073527
export function inputrestore(
35083528
denops: Denops,
35093529
...args: unknown[]
@@ -3519,6 +3539,7 @@ export function inputrestore(
35193539
* many inputrestore() calls.
35203540
* Returns 1 when out of memory, 0 otherwise.
35213541
*/
3542+
export function inputsave(denops: Denops): Promise<unknown>;
35223543
export function inputsave(
35233544
denops: Denops,
35243545
...args: unknown[]
@@ -3968,6 +3989,7 @@ export function lispindent(
39683989
* Return the current time, measured as seconds since 1st Jan
39693990
* 1970. See also |strftime()|, |strptime()| and |getftime()|.
39703991
*/
3992+
export function localtime(denops: Denops): Promise<unknown>;
39713993
export function localtime(
39723994
denops: Denops,
39733995
...args: unknown[]
@@ -4267,6 +4289,7 @@ export function match(denops: Denops, ...args: unknown[]): Promise<unknown> {
42674289
* Can also be used as a |method|:
42684290
* GetList()->match('word')
42694291
*/
4292+
export function strpbrk(denops: Denops): Promise<unknown>;
42704293
export function strpbrk(denops: Denops, ...args: unknown[]): Promise<unknown> {
42714294
return denops.call("strpbrk", ...args);
42724295
}
@@ -4308,6 +4331,7 @@ export function strpbrk(denops: Denops, ...args: unknown[]): Promise<unknown> {
43084331
* Can also be used as a |method|:
43094332
* GetList()->match('word')
43104333
*/
4334+
export function strcasestr(denops: Denops): Promise<unknown>;
43114335
export function strcasestr(
43124336
denops: Denops,
43134337
...args: unknown[]
@@ -4507,6 +4531,7 @@ export function matchend(denops: Denops, ...args: unknown[]): Promise<unknown> {
45074531
* Can also be used as a |method|:
45084532
* GetText()->matchend('word')
45094533
*/
4534+
export function strspn(denops: Denops): Promise<unknown>;
45104535
export function strspn(denops: Denops, ...args: unknown[]): Promise<unknown> {
45114536
return denops.call("strspn", ...args);
45124537
}
@@ -4525,6 +4550,7 @@ export function strspn(denops: Denops, ...args: unknown[]): Promise<unknown> {
45254550
* Can also be used as a |method|:
45264551
* GetText()->matchend('word')
45274552
*/
4553+
export function strcspn(denops: Denops): Promise<unknown>;
45284554
export function strcspn(denops: Denops, ...args: unknown[]): Promise<unknown> {
45294555
return denops.call("strcspn", ...args);
45304556
}
@@ -5025,6 +5051,7 @@ export function printf(denops: Denops, ...args: unknown[]): Promise<unknown> {
50255051
* This can be used to avoid some things that would remove the
50265052
* popup menu.
50275053
*/
5054+
export function pumvisible(denops: Denops): Promise<unknown>;
50285055
export function pumvisible(
50295056
denops: Denops,
50305057
...args: unknown[]
@@ -5199,6 +5226,7 @@ export function readfile(denops: Denops, ...args: unknown[]): Promise<unknown> {
51995226
* Returns an empty string when no register is being executed.
52005227
* See |@|.
52015228
*/
5229+
export function reg_executing(denops: Denops): Promise<unknown>;
52025230
export function reg_executing(
52035231
denops: Denops,
52045232
...args: unknown[]
@@ -5210,6 +5238,7 @@ export function reg_executing(
52105238
* Returns the single letter name of the register being recorded.
52115239
* Returns an empty string when not recording. See |q|.
52125240
*/
5241+
export function reg_recording(denops: Denops): Promise<unknown>;
52135242
export function reg_recording(
52145243
denops: Denops,
52155244
...args: unknown[]
@@ -5636,6 +5665,7 @@ export function screenchar(
56365665
* nnoremap <expr> GG ":echom ".screencol()."\n"
56375666
* nnoremap <silent> GG :echom screencol()<CR
56385667
*/
5668+
export function screencol(denops: Denops): Promise<unknown>;
56395669
export function screencol(
56405670
denops: Denops,
56415671
...args: unknown[]
@@ -5682,6 +5712,7 @@ export function screenpos(
56825712
* Alternatively you can use |winline()|.
56835713
* Note: Same restrictions as with |screencol()|.
56845714
*/
5715+
export function screenrow(denops: Denops): Promise<unknown>;
56855716
export function screenrow(
56865717
denops: Denops,
56875718
...args: unknown[]
@@ -5985,6 +6016,7 @@ export function server2client(
59856016
* Example:
59866017
* :echo serverlist()
59876018
*/
6019+
export function serverlist(denops: Denops): Promise<unknown>;
59886020
export function serverlist(
59896021
denops: Denops,
59906022
...args: unknown[]
@@ -7043,6 +7075,7 @@ export function stridx(denops: Denops, ...args: unknown[]): Promise<unknown> {
70437075
* Can also be used as a |method|:
70447076
* GetHaystack()->stridx(needle)
70457077
*/
7078+
export function strstr(denops: Denops): Promise<unknown>;
70467079
export function strstr(denops: Denops, ...args: unknown[]): Promise<unknown> {
70477080
return denops.call("strstr", ...args);
70487081
}
@@ -7053,6 +7086,7 @@ export function strstr(denops: Denops, ...args: unknown[]): Promise<unknown> {
70537086
* Can also be used as a |method|:
70547087
* GetHaystack()->stridx(needle)
70557088
*/
7089+
export function strchr(denops: Denops): Promise<unknown>;
70567090
export function strchr(denops: Denops, ...args: unknown[]): Promise<unknown> {
70577091
return denops.call("strchr", ...args);
70587092
}
@@ -7160,6 +7194,7 @@ export function strridx(denops: Denops, ...args: unknown[]): Promise<unknown> {
71607194
* Can also be used as a |method|:
71617195
* GetHaystack()->strridx(needle)
71627196
*/
7197+
export function strrchr(denops: Denops): Promise<unknown>;
71637198
export function strrchr(denops: Denops, ...args: unknown[]): Promise<unknown> {
71647199
return denops.call("strrchr", ...args);
71657200
}
@@ -7634,6 +7669,7 @@ export function tabpagewinnr(
76347669
* Returns a |List| with the file names used to search for tags
76357670
* for the current buffer. This is the 'tags' option expanded.
76367671
*/
7672+
export function tagfiles(denops: Denops): Promise<unknown>;
76377673
export function tagfiles(denops: Denops, ...args: unknown[]): Promise<unknown> {
76387674
return denops.call("tagfiles", ...args);
76397675
}
@@ -7732,6 +7768,7 @@ export function tanh(denops: Denops, ...args: unknown[]): Promise<unknown> {
77327768
* For MS-Windows forward slashes are used when the 'shellslash'
77337769
* option is set or when 'shellcmdflag' starts with '-'.
77347770
*/
7771+
export function tempname(denops: Denops): Promise<unknown>;
77357772
export function tempname(denops: Denops, ...args: unknown[]): Promise<unknown> {
77367773
return denops.call("tempname", ...args);
77377774
}
@@ -7854,6 +7891,7 @@ export function timer_stop(
78547891
* timers there is no error.
78557892
* {only available when compiled with the |+timers| feature}
78567893
*/
7894+
export function timer_stopall(denops: Denops): Promise<unknown>;
78577895
export function timer_stopall(
78587896
denops: Denops,
78597897
...args: unknown[]
@@ -8052,6 +8090,7 @@ export function undofile(denops: Denops, ...args: unknown[]): Promise<unknown> {
80528090
* blocks. Each item may again have an "alt"
80538091
* item.
80548092
*/
8093+
export function undotree(denops: Denops): Promise<unknown>;
80558094
export function undotree(denops: Denops, ...args: unknown[]): Promise<unknown> {
80568095
return denops.call("undotree", ...args);
80578096
}
@@ -8166,6 +8205,7 @@ export function visualmode(
81668205
* :cnoremap <expr> <C-j> wildmenumode() ? "\<Down>\<Tab>" : "\<c-j>"
81678206
* (Note, this needs the 'wildcharm' option set appropriately).
81688207
*/
8208+
export function wildmenumode(denops: Denops): Promise<unknown>;
81698209
export function wildmenumode(
81708210
denops: Denops,
81718211
...args: unknown[]
@@ -8294,6 +8334,7 @@ export function winbufnr(denops: Denops, ...args: unknown[]): Promise<unknown> {
82948334
* cursor in the window. This is counting screen cells from the
82958335
* left side of the window. The leftmost column is one.
82968336
*/
8337+
export function wincol(denops: Denops): Promise<unknown>;
82978338
export function wincol(denops: Denops, ...args: unknown[]): Promise<unknown> {
82988339
return denops.call("wincol", ...args);
82998340
}
@@ -8361,6 +8402,7 @@ export function winlayout(
83618402
* If the cursor was moved the view on the file will be updated
83628403
* first, this may cause a scroll.
83638404
*/
8405+
export function winline(denops: Denops): Promise<unknown>;
83648406
export function winline(denops: Denops, ...args: unknown[]): Promise<unknown> {
83658407
return denops.call("winline", ...args);
83668408
}
@@ -8408,6 +8450,7 @@ export function winnr(denops: Denops, ...args: unknown[]): Promise<unknown> {
84088450
* :call MessWithWindowSizes()
84098451
* :exe cmd
84108452
*/
8453+
export function winrestcmd(denops: Denops): Promise<unknown>;
84118454
export function winrestcmd(
84128455
denops: Denops,
84138456
...args: unknown[]
@@ -8461,6 +8504,7 @@ export function winrestview(
84618504
* skipcol columns skipped
84628505
* Note that no option values are saved.
84638506
*/
8507+
export function winsaveview(denops: Denops): Promise<unknown>;
84648508
export function winsaveview(
84658509
denops: Denops,
84668510
...args: unknown[]
@@ -8510,6 +8554,7 @@ export function winwidth(denops: Denops, ...args: unknown[]): Promise<unknown> {
85108554
* visual_words Number of words visually selected
85118555
* (only in Visual mode)
85128556
*/
8557+
export function wordcount(denops: Denops): Promise<unknown>;
85138558
export function wordcount(
85148559
denops: Denops,
85158560
...args: unknown[]

denops_std/function/nvim/_generated.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Denops } from "../../deps.ts";
55
/**
66
* Returns Dictionary of |api-metadata|.
77
*/
8+
export function api_info(denops: Denops): Promise<unknown>;
89
export function api_info(denops: Denops, ...args: unknown[]): Promise<unknown> {
910
return denops.call("api_info", ...args);
1011
}
@@ -291,6 +292,7 @@ export function ctxget(denops: Denops, ...args: unknown[]): Promise<unknown> {
291292
* Pops and restores the |context| at the top of the
292293
* |context-stack|.
293294
*/
295+
export function ctxpop(denops: Denops): Promise<unknown>;
294296
export function ctxpop(denops: Denops, ...args: unknown[]): Promise<unknown> {
295297
return denops.call("ctxpop", ...args);
296298
}
@@ -325,6 +327,7 @@ export function ctxset(denops: Denops, ...args: unknown[]): Promise<unknown> {
325327
/**
326328
* Returns the size of the |context-stack|.
327329
*/
330+
export function ctxsize(denops: Denops): Promise<unknown>;
328331
export function ctxsize(denops: Denops, ...args: unknown[]): Promise<unknown> {
329332
return denops.call("ctxsize", ...args);
330333
}
@@ -1161,6 +1164,7 @@ export function termopen(denops: Denops, ...args: unknown[]): Promise<unknown> {
11611164
* internally, and |v:testing| must have been set before calling
11621165
* any function.
11631166
*/
1167+
export function test_garbagecollect_now(denops: Denops): Promise<unknown>;
11641168
export function test_garbagecollect_now(
11651169
denops: Denops,
11661170
...args: unknown[]

0 commit comments

Comments
 (0)