Skip to content

Commit 010a0f4

Browse files
lambdalisueclaude
andcommitted
Regenerate code with new supported versions for Denops v8
Updates generated TypeScript functions and options to include new supported versions and documentation improvements from the upstream Denops repository for v8 compatibility. Related: vim-denops/denops.vim#458 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1618039 commit 010a0f4

19 files changed

+4426
-1503
lines changed

function/_generated.ts

Lines changed: 1254 additions & 181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

function/buffer.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export interface GetBufInfoDictArg {
7777
* passed as the second argument:
7878
*
7979
* mylist->appendbufline(buf, lnum)
80+
*
81+
* Return type: `Number`
8082
*/
8183
export async function appendbufline(
8284
denops: Denops,
@@ -105,6 +107,8 @@ export async function appendbufline(
105107
* Can also be used as a `method`:
106108
*
107109
* let bufnr = 'somename'->bufadd()
110+
*
111+
* Return type: `Number`
108112
*/
109113
export async function bufadd(
110114
denops: Denops,
@@ -140,6 +144,8 @@ export async function bufadd(
140144
*
141145
* let exists = 'somename'->bufexists()
142146
*
147+
* Return type: `Number`
148+
*
143149
* Obsolete name: buffer_exists().
144150
*/
145151
export async function bufexists(
@@ -158,6 +164,8 @@ export async function bufexists(
158164
* Can also be used as a `method`:
159165
*
160166
* let listed = 'somename'->buflisted()
167+
*
168+
* Return type: `Number`
161169
*/
162170
export async function buflisted(
163171
denops: Denops,
@@ -180,6 +188,8 @@ export async function buflisted(
180188
* Can also be used as a `method`:
181189
*
182190
* eval 'somename'->bufload()
191+
*
192+
* Return type: `Number`
183193
*/
184194
export async function bufload(
185195
denops: Denops,
@@ -196,6 +206,8 @@ export async function bufload(
196206
* Can also be used as a `method`:
197207
*
198208
* let loaded = 'somename'->bufloaded()
209+
*
210+
* Return type: `Number`
199211
*/
200212
export async function bufloaded(
201213
denops: Denops,
@@ -242,6 +254,8 @@ export async function bufloaded(
242254
* bufname("%") name of current buffer
243255
* bufname("file2") name of buffer where "file2" matches.
244256
*
257+
* Return type: `String`
258+
*
245259
* Obsolete name: buffer_name().
246260
*/
247261
export async function bufname(
@@ -278,6 +292,8 @@ export async function bufname(
278292
*
279293
* echo bufref->bufnr()
280294
*
295+
* Return type: `Number`
296+
*
281297
* Obsolete name: buffer_number().
282298
*
283299
* Obsolete name for bufnr("$"): last_buffer_nr().
@@ -304,6 +320,8 @@ export async function bufnr(
304320
* Can also be used as a `method`:
305321
*
306322
* FindBuffer()->bufwinid()
323+
*
324+
* Return type: `Number`
307325
*/
308326
export async function bufwinid(
309327
denops: Denops,
@@ -326,6 +344,8 @@ export async function bufwinid(
326344
* Can also be used as a `method`:
327345
*
328346
* FindBuffer()->bufwinnr()
347+
*
348+
* Return type: `Number`
329349
*/
330350
export async function bufwinnr(
331351
denops: Denops,
@@ -351,6 +371,8 @@ export async function bufwinnr(
351371
* Can also be used as a `method`:
352372
*
353373
* GetBuffer()->deletebufline(1)
374+
*
375+
* Return type: `Number`
354376
*/
355377
export async function deletebufline(
356378
denops: Denops,
@@ -437,6 +459,8 @@ export async function deletebufline(
437459
* Can also be used as a `method`:
438460
*
439461
* GetBufnr()->getbufinfo()
462+
*
463+
* Return type: list<dict<any>>
440464
*/
441465
export function getbufinfo(
442466
denops: Denops,
@@ -492,6 +516,8 @@ export async function getbufinfo(
492516
* Can also be used as a `method`:
493517
*
494518
* GetBufnr()->getbufline(lnum)
519+
*
520+
* Return type: list<string>
495521
*/
496522
export async function getbufline(
497523
denops: Denops,
@@ -527,6 +553,8 @@ export async function getbufline(
527553
* Can also be used as a `method`:
528554
*
529555
* GetBufnr()->getbufvar(varname)
556+
*
557+
* Return type: any, depending on **{varname}**
530558
*/
531559
export function getbufvar(
532560
denops: Denops,
@@ -566,6 +594,8 @@ export function getbufvar(
566594
* Can also be used as a `method`:
567595
*
568596
* GetBufnr()->getchangelist()
597+
*
598+
* Return type: list<any>
569599
*/
570600
export async function getchangelist(
571601
denops: Denops,
@@ -596,6 +626,8 @@ export async function getchangelist(
596626
* Can also be used as a `method`:
597627
*
598628
* GetBufnr()->getmarklist()
629+
*
630+
* Return type: list<dict<any>> or list<any>
599631
*/
600632
export async function getmarklist(
601633
denops: Denops,
@@ -635,6 +667,8 @@ export async function getmarklist(
635667
* third argument:
636668
*
637669
* GetText()->setbufline(buf, lnum)
670+
*
671+
* Return type: `Number`
638672
*/
639673
export async function setbufline(
640674
denops: Denops,
@@ -666,6 +700,8 @@ export async function setbufline(
666700
* third argument:
667701
*
668702
* GetValue()->setbufvar(buf, varname)
703+
*
704+
* Return type: `Number`
669705
*/
670706
export async function setbufvar(
671707
denops: Denops,
@@ -686,6 +722,8 @@ export async function setbufvar(
686722
* Can also be used as a `method`:
687723
*
688724
* GetBufname()->swapname()
725+
*
726+
* Return type: `String`
689727
*/
690728
export async function swapname(
691729
denops: Denops,

function/common.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ import type { Denops } from "../mod.ts";
116116
* Can also be used as a `method`:
117117
*
118118
* Varname()->exists()
119+
*
120+
* Return type: `String`
119121
*/
120122
export async function exists(
121123
denops: Denops,
@@ -168,6 +170,7 @@ export async function exists(
168170
* fname_case Case in file names matters (for Darwin and MS-Windows
169171
* this is not present).
170172
* gui_running Nvim has a GUI.
173+
* hurd GNU/Hurd system.
171174
* iconv Can use `iconv()` for conversion.
172175
* linux Linux system.
173176
* mac MacOS system.
@@ -196,6 +199,12 @@ export async function exists(
196199
* if has("patch-7.4.237")
197200
* " ...
198201
* endif
202+
*
203+
* Parameters:
204+
* - **{feature}** (`string`)
205+
*
206+
* Return:
207+
* (`0|1`)
199208
*/
200209
export async function has(
201210
denops: Denops,
@@ -237,6 +246,8 @@ export async function has(
237246
*
238247
* ComputeLnum()->getline()
239248
*
249+
* Return type: list<string> or `String` depending on **{end}**
250+
*
240251
* To get lines from another buffer see `getbufline()` and
241252
* `getbufoneline()`
242253
*/
@@ -260,7 +271,9 @@ export async function getline(
260271
/**
261272
* Set line **{lnum}** of the current buffer to **{text}**. To insert
262273
* lines use `append()`. To set lines in another buffer use
263-
* `setbufline()`. Any text properties in **{lnum}** are cleared.
274+
* `setbufline()`.
275+
* Any text properties in **{lnum}** are cleared. See
276+
* `text-prop-cleared`
264277
*
265278
* **{lnum}** is used like with `getline()`.
266279
* When **{lnum}** is just below the last line the **{text}** will be
@@ -294,6 +307,8 @@ export async function getline(
294307
* second argument:
295308
*
296309
* GetText()->setline(lnum)
310+
*
311+
* Return type: `Number`
297312
*/
298313
export async function setline(
299314
denops: Denops,

0 commit comments

Comments
 (0)