aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-04 02:13:31 -0700
committerGitHub <noreply@github.com>2024-10-04 02:13:31 -0700
commitb45c50f3140e7ece593f2126840900f5cc3d39ea (patch)
tree20e9c304a14f129c26be769f9171dba0bcaba5b9 /runtime/lua/vim/_meta
parentf62728cd80a9c458b1c0ef7c5c1251e55fe91090 (diff)
downloadrneovim-b45c50f3140e7ece593f2126840900f5cc3d39ea.tar.gz
rneovim-b45c50f3140e7ece593f2126840900f5cc3d39ea.tar.bz2
rneovim-b45c50f3140e7ece593f2126840900f5cc3d39ea.zip
docs: render `@since` versions, 0 means experimental #30649
An implication of this current approach is that `NVIM_API_LEVEL` should be bumped when a new Lua function is added. TODO(future): add a lint check which requires `@since` on all new functions. ref #25416
Diffstat (limited to 'runtime/lua/vim/_meta')
-rw-r--r--runtime/lua/vim/_meta/builtin.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/builtin.lua b/runtime/lua/vim/_meta/builtin.lua
index 1a3f272290..13bd1c1294 100644
--- a/runtime/lua/vim/_meta/builtin.lua
+++ b/runtime/lua/vim/_meta/builtin.lua
@@ -248,7 +248,7 @@ function vim.schedule(fn) end
--- - If {callback} errors, the error is raised.
function vim.wait(time, callback, interval, fast_only) end
---- Attach to ui events, similar to |nvim_ui_attach()| but receive events
+--- Attach to |ui-events|, similar to |nvim_ui_attach()| but receive events
--- as Lua callback. Can be used to implement screen elements like
--- popupmenu or message handling in Lua.
---
@@ -282,6 +282,8 @@ function vim.wait(time, callback, interval, fast_only) end
--- end)
--- ```
---
+--- @since 0
+---
--- @param ns integer
--- @param options table<string, any>
--- @param callback fun()