aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-14 19:53:33 -0700
committerGitHub <noreply@github.com>2019-09-14 19:53:33 -0700
commit86e819d492faa2494ffe0e86f37c49eb4c0f2e56 (patch)
tree63a0fde18014ec2be04cadc81486cf7fe5243ef6 /runtime
parent2e0e592ea29ea7d2da333824a93aa543a6f7f390 (diff)
parentffdf8c4c1227874a62b950cc7138005b40004c6a (diff)
downloadrneovim-86e819d492faa2494ffe0e86f37c49eb4c0f2e56.tar.gz
rneovim-86e819d492faa2494ffe0e86f37c49eb4c0f2e56.tar.bz2
rneovim-86e819d492faa2494ffe0e86f37c49eb4c0f2e56.zip
Merge #11021 from justinmk/ctx-rename-buflist
API: Context: "opts" param, et al.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt9
-rw-r--r--runtime/doc/repeat.txt4
2 files changed, 7 insertions, 6 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 18129e8c39..98dd330b48 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1027,13 +1027,14 @@ nvim_get_color_map() *nvim_get_color_map()*
Return: ~
Map of color names and RGB values.
-nvim_get_context({types}) *nvim_get_context()*
+nvim_get_context({opts}) *nvim_get_context()*
Gets a map of the current editor state.
Parameters: ~
- {types} Context types ("regs", "jumps", "buflist",
- "gvars", ...) to gather, or NIL for all (see
- |context-types|).
+ {opts} Optional parameters.
+ • types: List of |context-types| ("regs", "jumps",
+ "bufs", "gvars", …) to gather, or empty for
+ "all".
Return: ~
map of global |context|.
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index 8f6d3aec2e..d4b6324bc3 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -1003,14 +1003,14 @@ like the current |jumplist|, values of |registers|, and more, described below.
The following Context items are supported:
"jumps" |jumplist|
"regs" |registers|
- "buflist" |buffer-list|
+ "bufs" |buffer-list|
"gvars" |global-variable|s
"sfuncs" |script-local| functions
"funcs" global and |script-local| functions
*context-dict*
Context objects are dictionaries with the following key-value pairs:
-- "jumps", "regs", "buflist", "gvars":
+- "jumps", "regs", "bufs", "gvars":
|readfile()|-style |List| representation of corresponding msgpack
objects (see |msgpackdump()| and |msgpackparse()|).
- "funcs" (includes |script-local| functions as well):