mirror of
https://github.com/neovim/neovim
synced 2025-07-16 09:11:51 +00:00
docs(lsp): format the handwritten part #29295
(cherry picked from commit 7ce261c064
)
This commit is contained in:
committed by
github-actions[bot]
parent
446b05f85a
commit
f7d8650616
@ -213,21 +213,21 @@ Each response handler has this signature: >
|
||||
function(err, result, ctx, config)
|
||||
<
|
||||
Parameters: ~
|
||||
- {err} (table|nil) Error info dict, or `nil` if the request
|
||||
• {err} (`table|nil`) Error info dict, or `nil` if the request
|
||||
completed.
|
||||
- {result} (Result | Params | nil) `result` key of the |lsp-response| or
|
||||
• {result} (`Result|Params|nil`) `result` key of the |lsp-response| or
|
||||
`nil` if the request failed.
|
||||
- {ctx} (table) Table of calling state associated with the
|
||||
• {ctx} (`table`) Table of calling state associated with the
|
||||
handler, with these keys:
|
||||
- {method} (string) |lsp-method| name.
|
||||
- {client_id} (number) |vim.lsp.Client| identifier.
|
||||
- {bufnr} (Buffer) Buffer handle.
|
||||
- {params} (table|nil) Request parameters table.
|
||||
- {version} (number) Document version at time of
|
||||
• {method} (`string`) |lsp-method| name.
|
||||
• {client_id} (`number`) |vim.lsp.Client| identifier.
|
||||
• {bufnr} (`Buffer`) Buffer handle.
|
||||
• {params} (`table|nil`) Request parameters table.
|
||||
• {version} (`number`) Document version at time of
|
||||
request. Handlers can compare this to the
|
||||
current document version to check if the
|
||||
response is "stale". See also |b:changedtick|.
|
||||
- {config} (table) Handler-defined configuration table, which allows
|
||||
• {config} (`table`) Handler-defined configuration table, which allows
|
||||
users to customize handler behavior.
|
||||
For an example, see:
|
||||
|vim.lsp.diagnostic.on_publish_diagnostics()|
|
||||
|
Reference in New Issue
Block a user