Skip to content

Commit 5c716ef

Browse files
committed
🐛 Fix invalid manual reference of gen-option
This add missing `buflisted` option
1 parent e77d538 commit 5c716ef

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

denops_std/option/_generated.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,35 @@ export const bufhidden = {
938938
},
939939
};
940940

941+
/**
942+
*
943+
* When this option is set, the buffer shows up in the buffer list. If
944+
* it is reset it is not used for ":bnext", "ls", the Buffers menu, etc.
945+
* This option is reset by Vim for buffers that are only used to remember
946+
* a file name or marks. Vim sets it when starting to edit a buffer.
947+
* But not when moving to a buffer with ":buffer".
948+
*/
949+
export const buflisted = {
950+
async get(denops: Denops): Promise<boolean> {
951+
return await options.get(denops, "buflisted") ?? false;
952+
},
953+
set(denops: Denops, value: boolean): Promise<void> {
954+
return options.set(denops, "buflisted", value);
955+
},
956+
reset(denops: Denops): Promise<void> {
957+
return options.remove(denops, "buflisted");
958+
},
959+
async getLocal(denops: Denops): Promise<boolean> {
960+
return await localOptions.get(denops, "buflisted") ?? false;
961+
},
962+
setLocal(denops: Denops, value: boolean): Promise<void> {
963+
return localOptions.set(denops, "buflisted", value);
964+
},
965+
resetLocal(denops: Denops): Promise<void> {
966+
return localOptions.remove(denops, "buflisted");
967+
},
968+
};
969+
941970
/**
942971
*
943972
* The value of this option specifies the type of a buffer:

scripts/gen-option/gen-option.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import {
33
intersection,
44
} from "https://deno.land/x/set_operations@v1.0.0/mod.ts";
55
import * as path from "https://deno.land/std@0.104.0/path/mod.ts";
6-
import * as commonManual from "../../denops_std/function/_manual.ts";
7-
import * as vimManual from "../../denops_std/function/vim/_manual.ts";
8-
import * as nvimManual from "../../denops_std/function/nvim/_manual.ts";
6+
import * as commonManual from "../../denops_std/option/_manual.ts";
7+
import * as vimManual from "../../denops_std/option/vim/_manual.ts";
8+
import * as nvimManual from "../../denops_std/option/nvim/_manual.ts";
99
import { parse } from "./parse.ts";
1010
import { format } from "./format.ts";
1111
import { downloadString } from "./utils.ts";

0 commit comments

Comments
 (0)