1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:10:04 +08:00
SpaceVim/bundle/plenary.nvim/lua/plenary/nvim_meta.lua
2022-05-16 22:20:10 +08:00

19 lines
422 B
Lua
Vendored

local get_lua_version = function()
if jit then
return {
lua = string.gsub(_VERSION, "Lua ", ""),
jit = not not string.find(jit.version, "LuaJIT"),
version = string.gsub(jit.version, "LuaJIT ", ""),
}
end
error("NEOROCKS: Unsupported Lua Versions", _VERSION)
end
return {
-- Is run in `--headless` mode.
is_headless = (#vim.api.nvim_list_uis() == 0),
lua_jit = get_lua_version(),
}