Skip to content

Commit 6bbdb2b

Browse files
committed
chore(build): auto-generate vimdoc
1 parent c02cb0c commit 6bbdb2b

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

doc/api.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function astrolsp.lsp_setup(server: string)
7878

7979

8080
```lua
81-
function astrolsp.on_attach(client: lsp.Client, bufnr: integer)
81+
function astrolsp.on_attach(client: vim.lsp.Client, bufnr: integer)
8282
```
8383

8484
*param* `client` — The LSP client details when attaching
@@ -87,6 +87,15 @@ function astrolsp.on_attach(client: lsp.Client, bufnr: integer)
8787

8888
The `on_attach` function used by AstroNvim
8989

90+
### progress
91+
92+
93+
```lua
94+
function astrolsp.progress(data: { client_id: integer, result: lsp.ProgressParams })
95+
```
96+
97+
Add a new LSP progress message to the message queue
98+
9099
### setup
91100

92101

doc/astrolsp.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ _param_ `server` — The name of the server to be setup
378378
ON_ATTACH ~
379379

380380
>lua
381-
function astrolsp.on_attach(client: lsp.Client, bufnr: integer)
381+
function astrolsp.on_attach(client: vim.lsp.Client, bufnr: integer)
382382
<
383383

384384
_param_ `client` — The LSP client details when attaching
@@ -388,6 +388,15 @@ _param_ `bufnr` — The buffer that the LSP client is attaching to
388388
The `on_attach` function used by AstroNvim
389389

390390

391+
PROGRESS ~
392+
393+
>lua
394+
function astrolsp.progress(data: { client_id: integer, result: lsp.ProgressParams })
395+
<
396+
397+
Add a new LSP progress message to the message queue
398+
399+
391400
SETUP ~
392401

393402
>lua

0 commit comments

Comments
 (0)