Skip to content

Commit

Permalink
chore(build): auto-generate vimdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
astronvimbot committed May 14, 2024
1 parent 4e81c0a commit 8b0b037
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
14 changes: 4 additions & 10 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1507,33 +1507,27 @@ function astroui.status.utils.encode_pos(line: integer, col: integer, winnr: int


```lua
function astroui.status.utils.null_ls_providers(filetype: string, params?: table)
function astroui.status.utils.null_ls_providers(params: table)
-> table
```

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

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

*param* `params` — optional parameters to use for checking `runtime_condition`
*param* `params` — parameters to use for null-ls providers

*return* — a table of null-ls sources

### null_ls_sources


```lua
function astroui.status.utils.null_ls_sources(filetype: string, method: string, params?: table)
function astroui.status.utils.null_ls_sources(params: table)
-> string[]
```

Get the null-ls sources for a given null-ls method

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

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

*param* `params` — optional parameters to use for checking `runtime_condition`
*param* `params` — parameters to use for checking null-ls sources

*return* — the available sources for the given filetype and method

Expand Down
17 changes: 4 additions & 13 deletions doc/astroui.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1791,36 +1791,27 @@ _return_ `the` — encoded position
NULL_LS_PROVIDERS ~

>lua
function astroui.status.utils.null_ls_providers(filetype: string, params?: table)
function astroui.status.utils.null_ls_providers(params: table)
-> table
<

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

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

_param_ `params` — optional parameters to use for checking
`runtime_condition`
_param_ `params` — parameters to use for null-ls providers

_return_ — a table of null-ls sources


NULL_LS_SOURCES ~

>lua
function astroui.status.utils.null_ls_sources(filetype: string, method: string, params?: table)
function astroui.status.utils.null_ls_sources(params: table)
-> string[]
<

Get the null-ls sources for a given null-ls method

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

_param_ `method` — the null-ls method (check null-ls documentation for
available methods)

_param_ `params` — optional parameters to use for checking
`runtime_condition`
_param_ `params` — parameters to use for checking null-ls sources

_return_ — the available sources for the given filetype and method

Expand Down

0 comments on commit 8b0b037

Please sign in to comment.