fix(loader): keep using the internal lua cache till 0.9.1

This commit is contained in:
Folke Lemaitre 2023-04-19 12:59:29 +02:00
parent 5f13f69851
commit 78b981b1f3
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
2 changed files with 1 additions and 11 deletions

View File

@ -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 = {}

View File

@ -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