Skip to content

Commit

Permalink
fix(loader): keep using the internal lua cache till 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Apr 19, 2023
1 parent 5f13f69 commit 78b981b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions lua/lazy/core/cache.lua
Original file line number Diff line number Diff line change
@@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 78b981b

Please sign in to comment.