Skip to content

Commit c46c06a

Browse files
committed
☕ Update Vim/Neovim versions for gen-option
1 parent 9a69cd4 commit c46c06a

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

scripts/gen-option/gen-option.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,36 @@ 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 manualOptionSet = new Set([
1717
...Object.keys(commonManual),
1818
...Object.keys(vimManual),
1919
...Object.keys(nvimManual),
2020
]);
2121

22-
const vimHelp = await downloadString(
22+
const vimHelpDownloadUrls = [
2323
`https://raw.githubusercontent.com/vim/vim/v${VIM_VERSION}/runtime/doc/options.txt`,
24-
);
25-
const vimDefs = parse(vimHelp);
24+
];
25+
for (const vimHelpDownloadUrl of vimHelpDownloadUrls) {
26+
console.log(`Download from ${vimHelpDownloadUrl}`);
27+
}
28+
const vimHelps = await Promise.all(vimHelpDownloadUrls.map(downloadString));
29+
const vimDefs = vimHelps.map(parse).flat();
2630
const vimOptionSet = difference(
2731
new Set(vimDefs.map((def) => def.name)),
2832
manualOptionSet,
2933
);
3034

31-
const nvimHelp = await downloadString(
35+
const nvimHelpDownloadUrls = [
3236
`https://raw.githubusercontent.com/neovim/neovim/v${NVIM_VERSION}/runtime/doc/options.txt`,
33-
);
34-
const nvimDefs = parse(nvimHelp);
37+
];
38+
for (const nvimHelpDownloadUrl of nvimHelpDownloadUrls) {
39+
console.log(`Download from ${nvimHelpDownloadUrl}`);
40+
}
41+
const nvimHelps = await Promise.all(nvimHelpDownloadUrls.map(downloadString));
42+
const nvimDefs = nvimHelps.map(parse).flat();
3543
const nvimOptionSet = difference(
3644
new Set(nvimDefs.map((def) => def.name)),
3745
manualOptionSet,

0 commit comments

Comments
 (0)