aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp.lua
diff options
context:
space:
mode:
authorTighearnĂ¡n Carroll <tighearnan@cgxapp.com>2025-03-30 16:51:49 +0100
committerGitHub <noreply@github.com>2025-03-30 08:51:49 -0700
commitde96063bda43273f94478af2b02b5f5487b4f3f2 (patch)
tree637aec09bce4d8f5b62bdc275f57b2b0033857df /runtime/lua/vim/lsp.lua
parent49756ebc70dcd37eb7465f9cacd5e78803619daa (diff)
downloadrneovim-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/lua/vim/lsp.lua')
-rw-r--r--runtime/lua/vim/lsp.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua
index bb4e1cd28f..8c590ab6c8 100644
--- a/runtime/lua/vim/lsp.lua
+++ b/runtime/lua/vim/lsp.lua
@@ -1230,7 +1230,9 @@ end
---
---@param bufnr integer Buffer handle, or 0 for current.
---@param method string LSP method name
----@param params table? Parameters to send to the server
+---@param 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.
---@param timeout_ms integer? Maximum time in milliseconds to wait for a result.
--- (default: `1000`)
---@return table<integer, {error: lsp.ResponseError?, result: any}>? result Map of client_id:request_result.