Skip to content

Commit a37fd72

Browse files
dkearnschrisbra
authored andcommitted
runtime(doc): Remove accidental option name highlighting from :help channel.txt
closes: #18564 Signed-off-by: Doug Kearns <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 91959a7 commit a37fd72

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

runtime/doc/channel.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 9.1. Last change: 2025 Oct 12
1+
*channel.txt* For Vim version 9.1. Last change: 2025 Oct 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1473,13 +1473,13 @@ and encode the Vim expression into JSON. Refer to |json_encode()| and
14731473
|json_decode()| for more information about how Vim encodes and decodes the
14741474
builtin types into JSON.
14751475

1476-
To open a channel using the 'lsp' mode, set the 'mode' item in the |ch_open()|
1477-
{options} argument to 'lsp'. Example: >
1476+
To open a channel using the "lsp" mode, set the "mode" item in the |ch_open()|
1477+
{options} argument to "lsp". Example: >
14781478
14791479
let ch = ch_open(..., #{mode: 'lsp'})
14801480
1481-
To open a channel using the 'lsp' mode with a job, set the 'in_mode' and
1482-
'out_mode' items in the |job_start()| {options} argument to 'lsp'. Example: >
1481+
To open a channel using the "lsp" mode with a job, set the "in_mode" and
1482+
"out_mode" items in the |job_start()| {options} argument to "lsp". Example: >
14831483
14841484
let cmd = ['clangd', '--background-index', '--clang-tidy']
14851485
let opts = {}
@@ -1499,7 +1499,7 @@ formats appropriately or you should use a separate callback function for
14991499
To synchronously send a JSON-RPC request to the server, use the
15001500
|ch_evalexpr()| function. This function will wait and return the decoded
15011501
response message from the server. You can use either the |channel-timeout| or
1502-
the 'timeout' field in the {options} argument to control the response wait
1502+
the "timeout" field in the {options} argument to control the response wait
15031503
time. If the request times out, then an empty |Dict| is returned. Example: >
15041504
15051505
let req = {}
@@ -1512,9 +1512,9 @@ time. If the request times out, then an empty |Dict| is returned. Example: >
15121512
... <handle failure>
15131513
endif
15141514
1515-
Note that in the request message the 'id' field should not be specified. If
1515+
Note that in the request message the "id" field should not be specified. If
15161516
it is specified, then Vim will overwrite the value with an internally
1517-
generated identifier. Vim currently supports only a number type for the 'id'
1517+
generated identifier. Vim currently supports only a number type for the "id"
15181518
field.
15191519
The callback function will be invoked for both a successful and a failed RPC
15201520
request.
@@ -1559,7 +1559,7 @@ don't specify the "callback" item. Example: >
15591559
call ch_sendexpr(ch, #{method: 'initialized'})
15601560
15611561
To respond to a JSON-RPC request message from the server, use the
1562-
|ch_sendexpr()| function. In the response message, copy the 'id' field value
1562+
|ch_sendexpr()| function. In the response message, copy the "id" field value
15631563
from the server request message. Example: >
15641564
15651565
let resp = {}

0 commit comments

Comments
 (0)