mirror of https://github.com/folke/lazy.nvim.git
fix(loader): keep using the internal lua cache till 0.9.1
This commit is contained in:
parent
5f13f69851
commit
78b981b1f3
|
@ -1,13 +1,3 @@
|
|||
---@diagnostic disable: duplicate-doc-alias
|
||||
---@diagnostic disable: duplicate-doc-field
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
|
||||
-- interop with the native Neovim loader
|
||||
if vim.loader then
|
||||
return vim.loader
|
||||
end
|
||||
|
||||
-- NEOVIM
|
||||
local uv = vim.loop
|
||||
|
||||
local M = {}
|
||||
|
|
|
@ -34,7 +34,7 @@ function M.setup(spec, opts)
|
|||
local start = vim.loop.hrtime()
|
||||
|
||||
-- use the NEovim cache if available
|
||||
if vim.loader then
|
||||
if vim.loader and vim.fn.has("nvim-0.9.1") == 1 then
|
||||
package.loaded["lazy.core.cache"] = vim.loader
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue