neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit b46e93c5fd2c73b99b618d4954ab8d1c71ad3fb0
parent 01fe6b9e6a84338d4752c93a286262d79120f163
Author: Alisue <lambdalisue@gmail.com>
Date:   Mon,  7 Aug 2023 00:19:51 +0900

docs(msgpack_rpc): add "msgpack-rpc" client type

Diffstat:
Mruntime/doc/api.txt | 6+++++-
Mruntime/lua/vim/_meta/api.lua | 6+++++-
Msrc/nvim/api/vim.c | 5++++-
3 files changed, 14 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 @@ -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).