diff --git a/lua/lazy/core/cache.lua b/lua/lazy/core/cache.lua index d60d271..ea9f4d9 100644 --- a/lua/lazy/core/cache.lua +++ b/lua/lazy/core/cache.lua @@ -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 = {} diff --git a/lua/lazy/init.lua b/lua/lazy/init.lua index 2f015b6..2b41ffd 100644 --- a/lua/lazy/init.lua +++ b/lua/lazy/init.lua @@ -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