diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-01-18 00:37:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 09:37:18 +0100 |
commit | 61437c20b5936de1f833d155b7287d9151e763d8 (patch) | |
tree | 86afea1d746f2d1d8e00ab4cb45370f21228871e /runtime | |
parent | 702208daa6553ecfc3939c3c6e9fcd94fdd5aeba (diff) | |
download | rneovim-61437c20b5936de1f833d155b7287d9151e763d8.tar.gz rneovim-61437c20b5936de1f833d155b7287d9151e763d8.tar.bz2 rneovim-61437c20b5936de1f833d155b7287d9151e763d8.zip |
api: add vim.version (#13762)
retrun a structured version dict
:lua print(vim.inspect(vim.version()))
{
api_compatible = 0,
api_level = 7,
api_prerelease = true,
major = 0,
minor = 5,
patch = 0
}
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/lua.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index a03de10a17..92898cfad1 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -622,6 +622,9 @@ vim.api.{func}({...}) *vim.api* Example: call the "nvim_get_current_line()" API function: > print(tostring(vim.api.nvim_get_current_line())) +vim.version() *vim.version* + Returns the version of the current neovim build. + vim.in_fast_event() *vim.in_fast_event()* Returns true if the code is executing as part of a "fast" event handler, where most of the API is disabled. These are low-level events |