mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
docs(lsp): fix config.cmd
argument for vim.lsp.start_client
(#23560)
This commit is contained in:
@@ -942,12 +942,12 @@ start_client({config}) *vim.lsp.start_client()*
|
|||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
• {config} (table) Configuration for the server:
|
• {config} (table) Configuration for the server:
|
||||||
• cmd: (string[]|fun(dispatchers: table):table) command
|
• cmd: (string[]|fun(dispatchers: table):table) command a
|
||||||
string or list treated like |jobstart()|. The command must
|
list of strings treated like |jobstart()|. The command
|
||||||
launch the language server process. `cmd` can also be a
|
must launch the language server process. `cmd` can also be
|
||||||
function that creates an RPC client. The function receives
|
a function that creates an RPC client. The function
|
||||||
a dispatchers table and must return a table with the
|
receives a dispatchers table and must return a table with
|
||||||
functions `request`, `notify`, `is_closing` and
|
the functions `request`, `notify`, `is_closing` and
|
||||||
`terminate` See |vim.lsp.rpc.request()| and
|
`terminate` See |vim.lsp.rpc.request()| and
|
||||||
|vim.lsp.rpc.notify()| For TCP there is a built-in rpc
|
|vim.lsp.rpc.notify()| For TCP there is a built-in rpc
|
||||||
client factory: |vim.lsp.rpc.connect()|
|
client factory: |vim.lsp.rpc.connect()|
|
||||||
|
@@ -901,8 +901,8 @@ 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: (string[]|fun(dispatchers: table):table) command string or
|
--- - cmd: (string[]|fun(dispatchers: table):table) command a list of
|
||||||
--- list treated like |jobstart()|. The command must launch the language server
|
--- strings 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
|
||||||
--- functions `request`, `notify`, `is_closing` and `terminate`
|
--- functions `request`, `notify`, `is_closing` and `terminate`
|
||||||
|
Reference in New Issue
Block a user