diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-05-03 15:42:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 06:42:41 -0700 |
commit | 73741e94867a8dedabcbd356e1e929f198c51905 (patch) | |
tree | ebd12a0887d3b6e7d200641344c49fe310ad21cd /runtime/doc/lua.txt | |
parent | 4fb48c5654d9ffbffbdcdd80d0498b1ea3c8e68b (diff) | |
download | rneovim-73741e94867a8dedabcbd356e1e929f198c51905.tar.gz rneovim-73741e94867a8dedabcbd356e1e929f198c51905.tar.bz2 rneovim-73741e94867a8dedabcbd356e1e929f198c51905.zip |
feat(lua): vim.deprecate() #18320
This is primarily intended to act as documentation for the developer so
they know exactly when and what to remove. This will help prevent the
situation of deprecated code lingering for far too long as developers
don't have to worry if a function is safe to remove.
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index ed4cc77369..9ae45ab7fb 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -1326,6 +1326,17 @@ defer_fn({fn}, {timeout}) *vim.defer_fn()* Return: ~ timer luv timer object +deprecate({name}, {alternative}, {version}, {plugin}) *vim.deprecate()* + Display a deprecation notification to the user. + + Parameters: ~ + {name} string Deprecated function. + {alternative} string|nil Preferred alternative function. + {version} string Version in which the deprecated + function will be removed. + {plugin} string|nil Plugin name that the function + will be removed from. Defaults to "Nvim". + inspect({object}, {options}) *vim.inspect()* Return a human-readable representation of the given object. |