File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export function balloon_split(
67
67
return denops . call ( "balloon_split" , ...args ) ;
68
68
}
69
69
70
- /**/
70
+ /** * /
71
71
export function buffer_exists ( denops : Denops ) : Promise < unknown > ;
72
72
export function buffer_exists (
73
73
denops : Denops ,
@@ -98,7 +98,7 @@ export function buffer_number(
98
98
return denops . call ( "buffer_number" , ...args ) ;
99
99
}
100
100
101
- /**/
101
+ /** * /
102
102
export function last_buffer_nr ( denops : Denops ) : Promise < unknown > ;
103
103
export function last_buffer_nr (
104
104
denops : Denops ,
Original file line number Diff line number Diff line change @@ -19,19 +19,17 @@ const manualFnSet = new Set([
19
19
...Object . keys ( nvimManual ) ,
20
20
] ) ;
21
21
22
- const vimHelp = await downloadString (
22
+ const vimHelps = await Promise . all ( [
23
23
`https://raw.githubusercontent.com/vim/vim/v${ VIM_VERSION } /runtime/doc/eval.txt` ,
24
- ) ;
25
- const vimDefs = parse ( vimHelp ) ;
24
+ ] . map ( downloadString ) ) ;
25
+ const vimDefs = vimHelps . map ( parse ) . flat ( ) ;
26
26
const vimFnSet = difference ( new Set ( vimDefs . map ( ( def ) => def . fn ) ) , manualFnSet ) ;
27
27
28
- const nvimHelp = await downloadString (
28
+ const nvimHelps = await Promise . all ( [
29
29
`https://raw.githubusercontent.com/neovim/neovim/v${ NVIM_VERSION } /runtime/doc/eval.txt` ,
30
- ) ;
31
- const nvimHelp2 = await downloadString (
32
30
`https://raw.githubusercontent.com/neovim/neovim/v${ NVIM_VERSION } /runtime/doc/api.txt` ,
33
- ) ;
34
- const nvimDefs = parse ( nvimHelp ) . concat ( parse ( nvimHelp2 ) ) ;
31
+ ] . map ( downloadString ) ) ;
32
+ const nvimDefs = nvimHelps . map ( parse ) . flat ( ) ;
35
33
const nvimFnSet = difference (
36
34
new Set ( nvimDefs . map ( ( def ) => def . fn ) ) ,
37
35
manualFnSet ,
You can’t perform that action at this time.
0 commit comments