diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-25 10:00:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-25 10:00:41 +0200 |
commit | 4769deb36a54c3b2a4a2d2addb2937c1aa7dd629 (patch) | |
tree | 29a0ef85f770541ac829acbd6b51e4413a987b49 /src | |
parent | d51f132cb150a5adeac9e40ec7409040f32d880e (diff) | |
download | rneovim-4769deb36a54c3b2a4a2d2addb2937c1aa7dd629.tar.gz rneovim-4769deb36a54c3b2a4a2d2addb2937c1aa7dd629.tar.bz2 rneovim-4769deb36a54c3b2a4a2d2addb2937c1aa7dd629.zip |
doc #10017
- gen_vimdoc.py: fancy "bullet"
- rework `:help channel-callback`
- rename `:help buffered` to `:help channel-buffered`
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/api/vim.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index b8c863704a..9b5e0fc40b 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -1027,7 +1027,7 @@ Buffer nvim_create_buf(Boolean listed, Boolean scratch, Error *err) /// - "editor" the global editor grid /// - "win" a window. Use `win` to specify a window id, /// or the current window will be used by default. -/// "cursor" the cursor position in current window. +/// - "cursor" the cursor position in current window. /// - `win`: When using relative='win', window id of the window where the /// position is defined. /// - `anchor`: The corner of the float that the row,col position defines: @@ -1336,10 +1336,17 @@ Array nvim_get_api_info(uint64_t channel_id) return rv; } -/// Identifies the client. Can be called more than once; subsequent calls -/// remove earlier info, which should be included by the caller if it is -/// still valid. (E.g. if a library first identifies the channel, then a -/// plugin using that library later overrides that info) +/// Self-identifies the client. +/// +/// The client/plugin/application should call this after connecting, to provide +/// hints about its identity and purpose, for debugging and orchestration. +/// +/// Can be called more than once; the caller should merge old info if +/// appropriate. Example: library first identifies the channel, then a plugin +/// using that library later identifies itself. +/// +/// @note "Something is better than nothing". You don't need to include all the +/// fields. /// /// @param channel_id /// @param name Short name for the connected client |