Skip to content

Commit 2dc0c48

Browse files
committed
☕ Generate functions/options
1 parent 39eca8f commit 2dc0c48

File tree

8 files changed

+8007
-5832
lines changed

8 files changed

+8007
-5832
lines changed

denops_std/function/_generated.ts

Lines changed: 1142 additions & 409 deletions
Large diffs are not rendered by default.

denops_std/function/nvim/_generated.ts

Lines changed: 4135 additions & 3231 deletions
Large diffs are not rendered by default.

denops_std/function/vim/_generated.ts

Lines changed: 2143 additions & 1832 deletions
Large diffs are not rendered by default.

denops_std/option/_generated.ts

Lines changed: 277 additions & 332 deletions
Large diffs are not rendered by default.

denops_std/option/nvim/_generated.ts

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const scrollback = {
159159

160160
/**
161161
* When non-empty, the shada file is read upon startup and written
162-
* when exiting Vim (see |shada-file|). The string should be a comma
162+
* when exiting Vim (see |shada-file|). The string should be a comma-
163163
* separated list of parameters, each consisting of a single character
164164
* identifying the particular parameter, followed by a number or string
165165
* which specifies the value of that parameter. If a particular
@@ -283,7 +283,7 @@ export const shadafile = {
283283
};
284284

285285
/**
286-
* A comma separated list of options for specifying control characters
286+
* A comma-separated list of options for specifying control characters
287287
* to be removed from the text pasted into the terminal window. The
288288
* supported values are:
289289
*/
@@ -309,36 +309,38 @@ export const termpastefilter = {
309309
};
310310

311311
/**
312-
* This option specifies a function to be used for thesaurus completion
313-
* with CTRL-X CTRL-T. |i_CTRL-X_CTRL-T| See |compl-thesaurusfunc|.
312+
* When non-empty, this option enables the window bar and determines its
313+
* contents. The window bar is a bar that's shown at the top of every
314+
* window with it enabled. The value of 'winbar' is evaluated like with
315+
* 'statusline'.
314316
*/
315-
export const thesaurusfunc = {
317+
export const winbar = {
316318
async get(denops: Denops): Promise<string> {
317-
return await options.get(denops, "thesaurusfunc") ?? "";
319+
return await options.get(denops, "winbar") ?? "";
318320
},
319321
set(denops: Denops, value: string): Promise<void> {
320-
return options.set(denops, "thesaurusfunc", value);
322+
return options.set(denops, "winbar", value);
321323
},
322324
reset(denops: Denops): Promise<void> {
323-
return options.remove(denops, "thesaurusfunc");
325+
return options.remove(denops, "winbar");
324326
},
325327
async getGlobal(denops: Denops): Promise<string> {
326-
return await globalOptions.get(denops, "thesaurusfunc") ?? "";
328+
return await globalOptions.get(denops, "winbar") ?? "";
327329
},
328330
setGlobal(denops: Denops, value: string): Promise<void> {
329-
return globalOptions.set(denops, "thesaurusfunc", value);
331+
return globalOptions.set(denops, "winbar", value);
330332
},
331333
resetGlobal(denops: Denops): Promise<void> {
332-
return globalOptions.remove(denops, "thesaurusfunc");
334+
return globalOptions.remove(denops, "winbar");
333335
},
334336
async getLocal(denops: Denops): Promise<string> {
335-
return await localOptions.get(denops, "thesaurusfunc") ?? "";
337+
return await localOptions.get(denops, "winbar") ?? "";
336338
},
337339
setLocal(denops: Denops, value: string): Promise<void> {
338-
return localOptions.set(denops, "thesaurusfunc", value);
340+
return localOptions.set(denops, "winbar", value);
339341
},
340342
resetLocal(denops: Denops): Promise<void> {
341-
return localOptions.remove(denops, "thesaurusfunc");
343+
return localOptions.remove(denops, "winbar");
342344
},
343345
};
344346

@@ -370,10 +372,9 @@ export const winblend = {
370372

371373
/**
372374
* Window-local highlights. Comma-delimited list of highlight
373-
* |group-name| pairs "{hl-builtin}:{hl},..." where each {hl-builtin} is
374-
* a built-in |highlight-groups| item to be overridden by {hl} group in
375-
* the window. Only built-in |highlight-groups| are supported, not
376-
* syntax highlighting (use |:ownsyntax| for that).
375+
* |group-name| pairs "{hl-from}:{hl-to},..." where each {hl-from} is
376+
* a |highlight-groups| item to be overridden by {hl-to} group in
377+
* the window.
377378
*/
378379
export const winhighlight = {
379380
async get(denops: Denops): Promise<string> {

0 commit comments

Comments
 (0)