1
0
forked from aniani/vim

patch 8.2.2733: detecting Lua version is not reliable

Problem:    Detecting Lua version is not reliable.
Solution:   Add "vim.lua_version". (Ozaki Kiichi, closes #8080)
This commit is contained in:
Bram Moolenaar
2021-04-07 20:11:12 +02:00
parent e5b0b98a90
commit 125ed2745c
5 changed files with 29 additions and 13 deletions

View File

@@ -208,6 +208,8 @@ Vim evaluation and command execution, and others.
created on demand. Example: >
:lua print(vim.fn.has('timers'))
<
vim.lua_version The Lua version Vim was compiled with, in the
form {major}.{minor}.{patch}, e.g. "5.1.4".
==============================================================================
3. List userdata *lua-list*