aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerrael <errael@raelity.com>2024-11-15 17:37:36 -0800
committerGitHub <noreply@github.com>2024-11-16 09:37:36 +0800
commit2f7b0018b0354447497e8496fa3745773df2f218 (patch)
tree99b6e8a77f094f81ae58cbd2be476c7d32607174
parent2eb227f5b6e4debf2d5c2320168d27b4c25c3eb3 (diff)
downloadrneovim-2f7b0018b0354447497e8496fa3745773df2f218.tar.gz
rneovim-2f7b0018b0354447497e8496fa3745773df2f218.tar.bz2
rneovim-2f7b0018b0354447497e8496fa3745773df2f218.zip
docs: standardize doc for ChanInfo/ChanOpen autocmds/v:event (#31099)
-rw-r--r--runtime/doc/autocmd.txt8
-rw-r--r--runtime/doc/vvars.txt1
-rw-r--r--runtime/lua/vim/_meta/vvars.lua1
-rw-r--r--src/nvim/vvars.lua1
4 files changed, 5 insertions, 6 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 8e5e2628de..998ef5e9f3 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -353,15 +353,11 @@ BufWritePost After writing the whole buffer to a file
ChanInfo State of channel changed, for instance the
client of a RPC channel described itself.
Sets these |v:event| keys:
- info
- See |nvim_get_chan_info()| for the format of
- the info Dictionary.
+ info as from |nvim_get_chan_info()|
*ChanOpen*
ChanOpen Just after a channel was opened.
Sets these |v:event| keys:
- info
- See |nvim_get_chan_info()| for the format of
- the info Dictionary.
+ info as from |nvim_get_chan_info()|
*CmdUndefined*
CmdUndefined When a user command is used but it isn't
defined. Useful for defining a command only
diff --git a/runtime/doc/vvars.txt b/runtime/doc/vvars.txt
index a68f78d5d3..0c349c4e57 100644
--- a/runtime/doc/vvars.txt
+++ b/runtime/doc/vvars.txt
@@ -152,6 +152,7 @@ v:event
an aborting condition (e.g. |c_Esc| or
|c_CTRL-C| for |CmdlineLeave|).
chan |channel-id|
+ info Dict of arbitrary event data.
cmdlevel Level of cmdline.
cmdtype Type of cmdline, |cmdline-char|.
cwd Current working directory.
diff --git a/runtime/lua/vim/_meta/vvars.lua b/runtime/lua/vim/_meta/vvars.lua
index 733aa965a2..8784fdbac9 100644
--- a/runtime/lua/vim/_meta/vvars.lua
+++ b/runtime/lua/vim/_meta/vvars.lua
@@ -160,6 +160,7 @@ vim.v.errors = ...
--- an aborting condition (e.g. `c_Esc` or
--- `c_CTRL-C` for `CmdlineLeave`).
--- chan `channel-id`
+--- info Dict of arbitrary event data.
--- cmdlevel Level of cmdline.
--- cmdtype Type of cmdline, `cmdline-char`.
--- cwd Current working directory.
diff --git a/src/nvim/vvars.lua b/src/nvim/vvars.lua
index 4936f62e3e..5fc014a50c 100644
--- a/src/nvim/vvars.lua
+++ b/src/nvim/vvars.lua
@@ -171,6 +171,7 @@ M.vars = {
an aborting condition (e.g. |c_Esc| or
|c_CTRL-C| for |CmdlineLeave|).
chan |channel-id|
+ info Dict of arbitrary event data.
cmdlevel Level of cmdline.
cmdtype Type of cmdline, |cmdline-char|.
cwd Current working directory.