docs(lsp): nits and typos in client.lua

This commit is contained in:
Maria José Solano
2024-02-19 18:28:07 -08:00
committed by Lewis Russell
parent 191cca2566
commit 0101bdaa1a
2 changed files with 13 additions and 12 deletions

View File

@@ -937,7 +937,7 @@ Lua module: vim.lsp.client *lsp-client*
• {requests} (`table<integer,{ type: string, bufnr: integer, method: string}>`)
The current pending requests in flight to the
server. Entries are key-value pairs with the
key being the request ID while the value is a
key being the request id while the value is a
table with `type`, `bufnr`, and `method`
key-value pairs. `type` is either "pending"
for an active request, or "cancel" for a
@@ -950,7 +950,7 @@ Lua module: vim.lsp.client *lsp-client*
|vim.lsp.start_client()|. See
|vim.lsp.ClientConfig|.
• {server_capabilities} (`lsp.ServerCapabilities?`) Response from the
server sent on initialize` describing the
server sent on `initialize` describing the
server's capabilities.
• {progress} (`vim.lsp.Client.Progress`) A ring buffer
(|vim.ringbuf()|) containing progress messages
@@ -1000,9 +1000,9 @@ Lua module: vim.lsp.client *lsp-client*
Sends a request to the server. This is a thin
wrapper around {client.rpc.request} with some
additional checking. If {handler} is not
specified, If one is not found there, then an
error will occur. Returns: {status},
{[client_id]}. {status} is a boolean
specified and if there's no respective global
handler, then an error will occur. Returns:
{status}, {[client_id]}. {status} is a boolean
indicating if the notification was successful.
If it is `false`, then it will always be
`false` (the client has shutdown). If {status}