As title. From nvim -v
it only shows about the version of LuaJIT
:
NVIM v0.7.0-dev+714-g3aff3d634
Build type: Release
LuaJIT 2.1.0-beta3
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityAccording to nanotee/nvim-lua-guide, the version of Lua that Neovim embeds is LuaJIT 2.1.0, which maintains compatibility with Lua 5.1.
NeoVim is also likely to stick with Lua 5.1. See this entry from their FAQ:
Why Lua 5.1 instead of Lua 5.3+?
Lua 5.1 is a different language than 5.3. The Lua org makes breaking changes with every new version, so even if we switched (not upgraded, but switched) to 5.3 we gain nothing when they create the next new language in 5.4, 5.5, etc. And we would lose LuaJit, which is far more valuable than Lua 5.3+.
Lua 5.1 is a complete language. To "upgrade" it, add libraries, not syntax. Nvim itself already is a pretty good "stdlib" for Lua, and we will continue to grow and enhance it. Changing the rules of Lua gains nothing in this context.
:lua print(vim.lua_version)