1
- *astrocore.txt* For Neovim >= 0.9.0 Last change: 2024 January 16
1
+ *astrocore.txt* For Neovim >= 0.9.0 Last change: 2024 January 19
2
2
3
3
==============================================================================
4
4
Table of Contents *astrocore-table-of-contents*
@@ -354,7 +354,7 @@ _return_ `available` — Whether the plugin is available
354
354
LIST_INSERT_UNIQUE ~
355
355
356
356
>lua
357
- function astrocore.list_insert_unique(lst: any[]|nil, vals: any)
357
+ function astrocore.list_insert_unique(lst: any[]|nil, ... any)
358
358
-> any[]
359
359
<
360
360
@@ -363,16 +363,15 @@ insert non-unique values (THIS MODIFIES `lst`)
363
363
364
364
_param_ `lst` — The list like table that you want to insert into
365
365
366
- _param_ `vals` — Either a list like table of values to be inserted or a
367
- single value to be inserted
366
+ _param_ `... ` — Values to be inserted
368
367
369
368
_return_ — The modified list like table
370
369
371
370
372
371
LOAD_PLUGIN_WITH_FUNC ~
373
372
374
373
>lua
375
- function astrocore.load_plugin_with_func(plugin: string, module: table, func_names: string|string[] )
374
+ function astrocore.load_plugin_with_func(plugin: string, module: table, ... string)
376
375
<
377
376
378
377
A helper function to wrap a module function to require a plugin before running
@@ -382,8 +381,8 @@ _param_ `plugin` — The plugin to call `require("lazy").load` with
382
381
_param_ `module` — The system module where the functions live
383
382
(e.g. `vim .ui` )
384
383
385
- _param_ `func_names ` — The functions to wrap in the given module (e.g. `{
386
- "ui", " select } `)
384
+ _param_ `... ` — The functions to wrap in the given module (e.g. `"ui",
385
+ "select" `)
387
386
388
387
389
388
NOTIFY ~
0 commit comments