mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 20:05:38 +00:00
docs(lsp): fix type of config.cmd argument for vim.lsp.start_client (#23550)
This commit is contained in:
@@ -942,7 +942,7 @@ start_client({config}) *vim.lsp.start_client()*
|
|||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {config} (table) Configuration for the server:
|
• {config} (table) Configuration for the server:
|
||||||
• cmd: (table|string|fun(dispatchers: table):table) command
|
• cmd: (string[]|fun(dispatchers: table):table) command
|
||||||
string or list treated like |jobstart()|. The command must
|
string or list treated like |jobstart()|. The command must
|
||||||
launch the language server process. `cmd` can also be a
|
launch the language server process. `cmd` can also be a
|
||||||
function that creates an RPC client. The function receives
|
function that creates an RPC client. The function receives
|
||||||
|
|||||||
@@ -901,7 +901,7 @@ end
|
|||||||
--- Field `cmd` in {config} is required.
|
--- Field `cmd` in {config} is required.
|
||||||
---
|
---
|
||||||
---@param config (table) Configuration for the server:
|
---@param config (table) Configuration for the server:
|
||||||
--- - cmd: (table|string|fun(dispatchers: table):table) command string or
|
--- - cmd: (string[]|fun(dispatchers: table):table) command string or
|
||||||
--- list treated like |jobstart()|. The command must launch the language server
|
--- list treated like |jobstart()|. The command must launch the language server
|
||||||
--- process. `cmd` can also be a function that creates an RPC client.
|
--- process. `cmd` can also be a function that creates an RPC client.
|
||||||
--- The function receives a dispatchers table and must return a table with the
|
--- The function receives a dispatchers table and must return a table with the
|
||||||
|
|||||||
Reference in New Issue
Block a user