diff options
| author | Tighearnán Carroll <tighearnan@cgxapp.com> | 2025-03-30 16:51:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-30 08:51:49 -0700 |
| commit | de96063bda43273f94478af2b02b5f5487b4f3f2 (patch) | |
| tree | 637aec09bce4d8f5b62bdc275f57b2b0033857df /runtime/doc | |
| parent | 49756ebc70dcd37eb7465f9cacd5e78803619daa (diff) | |
| download | rneovim-de96063bda43273f94478af2b02b5f5487b4f3f2.tar.gz rneovim-de96063bda43273f94478af2b02b5f5487b4f3f2.tar.bz2 rneovim-de96063bda43273f94478af2b02b5f5487b4f3f2.zip | |
docs(lsp): `vim.api.buf_request_sync` can also take function as `params` #33170
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/lsp.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 6d232657c9..be1d209ac8 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -789,7 +789,10 @@ buf_request_sync({bufnr}, {method}, {params}, {timeout_ms}) Parameters: ~ • {bufnr} (`integer`) Buffer handle, or 0 for current. • {method} (`string`) LSP method name - • {params} (`table?`) Parameters to send to the server + • {params} (`table|(fun(client: vim.lsp.Client, bufnr: integer): table?)?`) + Parameters to send to the server. Can also be passed as + a function that returns the params table for cases where + parameters are specific to the client. • {timeout_ms} (`integer?`, default: `1000`) Maximum time in milliseconds to wait for a result. |