diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index bcd2224779..a8b0796643 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -714,7 +714,7 @@ Lua module: vim.lsp *lsp-core* Fields: ~ - • {cmd}? (`string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers): vim.lsp.rpc.PublicClient`) + • {cmd}? (`string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers, config: vim.lsp.ClientConfig): vim.lsp.rpc.PublicClient`) See `cmd` in |vim.lsp.ClientConfig|. See also `reuse_client` to dynamically decide (per-buffer) when `cmd` should be re-invoked. diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index 8261accb14..ae8753c24f 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -276,7 +276,7 @@ end --- --- See `cmd` in [vim.lsp.ClientConfig]. --- See also `reuse_client` to dynamically decide (per-buffer) when `cmd` should be re-invoked. ---- @field cmd? string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers): vim.lsp.rpc.PublicClient +--- @field cmd? string[]|fun(dispatchers: vim.lsp.rpc.Dispatchers, config: vim.lsp.ClientConfig): vim.lsp.rpc.PublicClient --- --- Filetypes the client will attach to, if activated by `vim.lsp.enable()`. If not provided, the --- client will attach to all filetypes.