Skip to content

Commit eeb187e

Browse files
committed
chore(build): auto-generate vimdoc
1 parent a9e5ccb commit eeb187e

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

doc/api.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,21 +1507,23 @@ function astroui.status.utils.encode_pos(line: integer, col: integer, winnr: int
15071507

15081508

15091509
```lua
1510-
function astroui.status.utils.null_ls_providers(filetype: string)
1510+
function astroui.status.utils.null_ls_providers(filetype: string, params?: table)
15111511
-> table
15121512
```
15131513

15141514
Get a list of registered null-ls providers for a given filetype
15151515

15161516
*param* `filetype` — the filetype to search null-ls for
15171517

1518+
*param* `params` — optional parameters to use for checking `runtime_condition`
1519+
15181520
*return* — a table of null-ls sources
15191521

15201522
### null_ls_sources
15211523

15221524

15231525
```lua
1524-
function astroui.status.utils.null_ls_sources(filetype: string, method: string)
1526+
function astroui.status.utils.null_ls_sources(filetype: string, method: string, params?: table)
15251527
-> string[]
15261528
```
15271529

@@ -1531,6 +1533,8 @@ function astroui.status.utils.null_ls_sources(filetype: string, method: string)
15311533

15321534
*param* `method` — the null-ls method (check null-ls documentation for available methods)
15331535

1536+
*param* `params` — optional parameters to use for checking `runtime_condition`
1537+
15341538
*return* — the available sources for the given filetype and method
15351539

15361540
### pad_string

doc/astroui.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*astroui.txt* For Neovim >= 0.9.0 Last change: 2024 April 22
1+
*astroui.txt* For Neovim >= 0.9.0 Last change: 2024 May 14
22

33
==============================================================================
44
Table of Contents *astroui-table-of-contents*
@@ -1791,21 +1791,24 @@ _return_ `the` — encoded position
17911791
NULL_LS_PROVIDERS ~
17921792

17931793
>lua
1794-
function astroui.status.utils.null_ls_providers(filetype: string)
1794+
function astroui.status.utils.null_ls_providers(filetype: string, params?: table)
17951795
-> table
17961796
<
17971797

17981798
Get a list of registered null-ls providers for a given filetype
17991799

18001800
_param_ `filetype` — the filetype to search null-ls for
18011801

1802+
_param_ `params` — optional parameters to use for checking
1803+
`runtime_condition`
1804+
18021805
_return_ — a table of null-ls sources
18031806

18041807

18051808
NULL_LS_SOURCES ~
18061809

18071810
>lua
1808-
function astroui.status.utils.null_ls_sources(filetype: string, method: string)
1811+
function astroui.status.utils.null_ls_sources(filetype: string, method: string, params?: table)
18091812
-> string[]
18101813
<
18111814

@@ -1816,6 +1819,9 @@ _param_ `filetype` — the filetype to search null-ls for
18161819
_param_ `method` — the null-ls method (check null-ls documentation for
18171820
available methods)
18181821

1822+
_param_ `params` — optional parameters to use for checking
1823+
`runtime_condition`
1824+
18191825
_return_ — the available sources for the given filetype and method
18201826

18211827

0 commit comments

Comments
 (0)