Skip to content

Commit e8b759e

Browse files
committed
☕ Update Vim/Neovim versions for gen-function
1 parent 6a07420 commit e8b759e

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

scripts/gen-function/gen-function.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,37 @@ import { parse } from "./parse.ts";
1010
import { format } from "./format.ts";
1111
import { downloadString } from "./utils.ts";
1212

13-
const VIM_VERSION = "8.2.3081";
14-
const NVIM_VERSION = "0.5.0";
13+
const VIM_VERSION = "8.2.3452";
14+
const NVIM_VERSION = "0.6.0";
1515

1616
const manualFnSet = new Set([
1717
...Object.keys(commonManual),
1818
...Object.keys(vimManual),
1919
...Object.keys(nvimManual),
2020
]);
2121

22-
const vimHelps = await Promise.all([
22+
const vimHelpDownloadUrls = [
2323
`https://raw.githubusercontent.com/vim/vim/v${VIM_VERSION}/runtime/doc/eval.txt`,
2424
`https://raw.githubusercontent.com/vim/vim/v${VIM_VERSION}/runtime/doc/textprop.txt`,
2525
`https://raw.githubusercontent.com/vim/vim/v${VIM_VERSION}/runtime/doc/terminal.txt`,
2626
`https://raw.githubusercontent.com/vim/vim/v${VIM_VERSION}/runtime/doc/channel.txt`,
2727
`https://raw.githubusercontent.com/vim/vim/v${VIM_VERSION}/runtime/doc/testing.txt`,
28-
].map(downloadString));
28+
];
29+
for (const vimHelpDownloadUrl of vimHelpDownloadUrls) {
30+
console.log(`Download from ${vimHelpDownloadUrl}`);
31+
}
32+
const vimHelps = await Promise.all(vimHelpDownloadUrls.map(downloadString));
2933
const vimDefs = vimHelps.map(parse).flat();
3034
const vimFnSet = difference(new Set(vimDefs.map((def) => def.fn)), manualFnSet);
3135

32-
const nvimHelps = await Promise.all([
36+
const nvimHelpDownloadUrls = [
3337
`https://raw.githubusercontent.com/neovim/neovim/v${NVIM_VERSION}/runtime/doc/eval.txt`,
3438
`https://raw.githubusercontent.com/neovim/neovim/v${NVIM_VERSION}/runtime/doc/api.txt`,
35-
].map(downloadString));
39+
];
40+
for (const nvimHelpDownloadUrl of nvimHelpDownloadUrls) {
41+
console.log(`Download from ${nvimHelpDownloadUrl}`);
42+
}
43+
const nvimHelps = await Promise.all(nvimHelpDownloadUrls.map(downloadString));
3644
const nvimDefs = nvimHelps.map(parse).flat();
3745
const nvimFnSet = difference(
3846
new Set(nvimDefs.map((def) => def.fn)),

0 commit comments

Comments
 (0)