runtime(doc): Remove accidental option name highlighting from :help channel.txt

closes: #18564

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-10-13 19:08:45 +00:00
committed by Christian Brabandt
parent 91959a797d
commit a37fd72749

View File

@ -1,4 +1,4 @@
*channel.txt* For Vim version 9.1. Last change: 2025 Oct 12 *channel.txt* For Vim version 9.1. Last change: 2025 Oct 13
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -1473,13 +1473,13 @@ and encode the Vim expression into JSON. Refer to |json_encode()| and
|json_decode()| for more information about how Vim encodes and decodes the |json_decode()| for more information about how Vim encodes and decodes the
builtin types into JSON. builtin types into JSON.
To open a channel using the 'lsp' mode, set the 'mode' item in the |ch_open()| To open a channel using the "lsp" mode, set the "mode" item in the |ch_open()|
{options} argument to 'lsp'. Example: > {options} argument to "lsp". Example: >
let ch = ch_open(..., #{mode: 'lsp'}) let ch = ch_open(..., #{mode: 'lsp'})
To open a channel using the 'lsp' mode with a job, set the 'in_mode' and To open a channel using the "lsp" mode with a job, set the "in_mode" and
'out_mode' items in the |job_start()| {options} argument to 'lsp'. Example: > "out_mode" items in the |job_start()| {options} argument to "lsp". Example: >
let cmd = ['clangd', '--background-index', '--clang-tidy'] let cmd = ['clangd', '--background-index', '--clang-tidy']
let opts = {} let opts = {}
@ -1499,7 +1499,7 @@ formats appropriately or you should use a separate callback function for
To synchronously send a JSON-RPC request to the server, use the To synchronously send a JSON-RPC request to the server, use the
|ch_evalexpr()| function. This function will wait and return the decoded |ch_evalexpr()| function. This function will wait and return the decoded
response message from the server. You can use either the |channel-timeout| or response message from the server. You can use either the |channel-timeout| or
the 'timeout' field in the {options} argument to control the response wait the "timeout" field in the {options} argument to control the response wait
time. If the request times out, then an empty |Dict| is returned. Example: > time. If the request times out, then an empty |Dict| is returned. Example: >
let req = {} let req = {}
@ -1512,9 +1512,9 @@ time. If the request times out, then an empty |Dict| is returned. Example: >
... <handle failure> ... <handle failure>
endif endif
Note that in the request message the 'id' field should not be specified. If Note that in the request message the "id" field should not be specified. If
it is specified, then Vim will overwrite the value with an internally it is specified, then Vim will overwrite the value with an internally
generated identifier. Vim currently supports only a number type for the 'id' generated identifier. Vim currently supports only a number type for the "id"
field. field.
The callback function will be invoked for both a successful and a failed RPC The callback function will be invoked for both a successful and a failed RPC
request. request.
@ -1559,7 +1559,7 @@ don't specify the "callback" item. Example: >
call ch_sendexpr(ch, #{method: 'initialized'}) call ch_sendexpr(ch, #{method: 'initialized'})
To respond to a JSON-RPC request message from the server, use the To respond to a JSON-RPC request message from the server, use the
|ch_sendexpr()| function. In the response message, copy the 'id' field value |ch_sendexpr()| function. In the response message, copy the "id" field value
from the server request message. Example: > from the server request message. Example: >
let resp = {} let resp = {}