aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2024-03-02 13:11:23 -0800
committerChristian Clason <c.clason@uni-graz.at>2024-03-07 10:24:34 +0100
commite52c25b7617ac6401b080f76b0e227161dfef230 (patch)
tree5ba26232e1d7ef539ae727514f588e8515f4ff9e /runtime/doc
parent6525832a8c4d44a8ebabba02a5ea1ce09b389a4f (diff)
downloadrneovim-e52c25b7617ac6401b080f76b0e227161dfef230.tar.gz
rneovim-e52c25b7617ac6401b080f76b0e227161dfef230.tar.bz2
rneovim-e52c25b7617ac6401b080f76b0e227161dfef230.zip
feat(lua): deprecate vim.tbl_add_reverse_lookup
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/deprecated.txt1
-rw-r--r--runtime/doc/lua.txt12
-rw-r--r--runtime/doc/news.txt3
3 files changed, 4 insertions, 12 deletions
diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt
index 9ca4e66c7b..5ac4ad4ce2 100644
--- a/runtime/doc/deprecated.txt
+++ b/runtime/doc/deprecated.txt
@@ -169,6 +169,7 @@ LUA
- vim.register_keystroke_callback() Use |vim.on_key()| instead.
- *vim.pretty_print()* Use |vim.print()| instead.
- *vim.loop* Use |vim.uv| instead.
+- *vim.tbl_add_reverse_lookup()*
NORMAL COMMANDS
- *]f* *[f* Same as "gf".
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 4f8c685a41..d0ce737e49 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -2149,18 +2149,6 @@ vim.startswith({s}, {prefix}) *vim.startswith()*
Return: ~
(`boolean`) `true` if `prefix` is a prefix of `s`
-vim.tbl_add_reverse_lookup({o}) *vim.tbl_add_reverse_lookup()*
- Add the reverse lookup values to an existing table. For example:
- `tbl_add_reverse_lookup { A = 1 } == { [1] = 'A', A = 1 }`
-
- Note that this modifies the input.
-
- Parameters: ~
- • {o} (`table`) Table to add the reverse to
-
- Return: ~
- (`table`) o
-
vim.tbl_contains({t}, {value}, {opts}) *vim.tbl_contains()*
Checks if a table contains a given value, specified either directly or via
a predicate that is checked for each value.
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 516ff6f0fe..3029414500 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -526,4 +526,7 @@ release.
populated. Background color detection is now performed in Lua by the Nvim
core, not the TUI.
+• vim.shared functions:
+ - |vim.tbl_add_reverse_lookup()|
+
vim:tw=78:ts=8:sw=2:et:ft=help:norl: