mirror of https://github.com/folke/lazy.nvim.git
fix(cache): ad jit.verion to cache version string. Fixes #225
This commit is contained in:
parent
95b9cf743c
commit
e3ffcff7cc
|
@ -4,7 +4,7 @@ local uv = vim.loop
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
M.dirty = false
|
M.dirty = false
|
||||||
M.VERSION = "1"
|
M.VERSION = "1" .. jit.version
|
||||||
|
|
||||||
---@class LazyCacheConfig
|
---@class LazyCacheConfig
|
||||||
M.config = {
|
M.config = {
|
||||||
|
|
|
@ -20,7 +20,7 @@ function M.setup(spec, opts)
|
||||||
if vim.fn.has("nvim-0.8.0") ~= 1 then
|
if vim.fn.has("nvim-0.8.0") ~= 1 then
|
||||||
return vim.notify("lazy.nvim requires Neovim >= 0.8.0", vim.log.levels.ERROR, { title = "lazy.nvim" })
|
return vim.notify("lazy.nvim requires Neovim >= 0.8.0", vim.log.levels.ERROR, { title = "lazy.nvim" })
|
||||||
end
|
end
|
||||||
if not pcall(require, "ffi") then
|
if not (pcall(require, "ffi") and jit and jit.version) then
|
||||||
return vim.notify("lazy.nvim requires Neovim built with LuaJIT", vim.log.levels.ERROR, { title = "lazy.nvim" })
|
return vim.notify("lazy.nvim requires Neovim built with LuaJIT", vim.log.levels.ERROR, { title = "lazy.nvim" })
|
||||||
end
|
end
|
||||||
local start = vim.loop.hrtime()
|
local start = vim.loop.hrtime()
|
||||||
|
|
Loading…
Reference in New Issue