diff options
author | Alisue <lambdalisue@gmail.com> | 2023-08-07 00:19:51 +0900 |
---|---|---|
committer | Alisue <lambdalisue@gmail.com> | 2023-08-26 19:14:07 +0900 |
commit | b46e93c5fd2c73b99b618d4954ab8d1c71ad3fb0 (patch) | |
tree | 575afd3fb09277927e17c80804b7f4c213134a62 | |
parent | 01fe6b9e6a84338d4752c93a286262d79120f163 (diff) | |
download | rneovim-b46e93c5fd2c73b99b618d4954ab8d1c71ad3fb0.tar.gz rneovim-b46e93c5fd2c73b99b618d4954ab8d1c71ad3fb0.tar.bz2 rneovim-b46e93c5fd2c73b99b618d4954ab8d1c71ad3fb0.zip |
docs(msgpack_rpc): add "msgpack-rpc" client type
-rw-r--r-- | runtime/doc/api.txt | 6 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 6 | ||||
-rw-r--r-- | src/nvim/api/vim.c | 5 |
3 files changed, 14 insertions, 3 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 793fcd703b..343c63f4b0 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -1336,7 +1336,11 @@ nvim_set_client_info({name}, {version}, {type}, {methods}, {attributes}) • {type} Must be one of the following values. Client libraries should default to "remote" unless overridden by the user. - • "remote" remote client connected to Nvim. + • "remote" remote client connected "Nvim flavored" + MessagePack-RPC (responses must be in reverse order of + requests). |msgpack-rpc| + • "msgpack-rpc" remote client connected to Nvim via + fully MessagePack-RPC compliant protocol. • "ui" gui frontend • "embedder" application using Nvim as a component (for example, IDE/editor implementing a vim mode). diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index c0e4e35e7d..fdf5016b68 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1679,7 +1679,11 @@ function vim.api.nvim_select_popupmenu_item(item, insert, finish, opts) end --- @param type string Must be one of the following values. Client libraries --- should default to "remote" unless overridden by the --- user. ---- • "remote" remote client connected to Nvim. +--- • "remote" remote client connected "Nvim flavored" +--- MessagePack-RPC (responses must be in reverse order of +--- requests). `msgpack-rpc` +--- • "msgpack-rpc" remote client connected to Nvim via +--- fully MessagePack-RPC compliant protocol. --- • "ui" gui frontend --- • "embedder" application using Nvim as a component (for --- example, IDE/editor implementing a vim mode). diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 4179ae40b8..16e6ab3fe0 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -1497,7 +1497,10 @@ Array nvim_get_api_info(uint64_t channel_id, Arena *arena) /// - "commit" hash or similar identifier of commit /// @param type Must be one of the following values. Client libraries should /// default to "remote" unless overridden by the user. -/// - "remote" remote client connected to Nvim. +/// - "remote" remote client connected "Nvim flavored" MessagePack-RPC (responses +/// must be in reverse order of requests). |msgpack-rpc| +/// - "msgpack-rpc" remote client connected to Nvim via fully MessagePack-RPC +/// compliant protocol. /// - "ui" gui frontend /// - "embedder" application using Nvim as a component (for example, /// IDE/editor implementing a vim mode). |