fix: respect --noplugin

This commit is contained in:
Folke Lemaitre 2022-12-02 10:02:34 +01:00
parent 60e8a01b94
commit 59fb050767
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,9 @@ local M = {}
---@param spec LazySpec Should be a module name to load, or a plugin spec
---@param opts? LazyConfig
function M.setup(spec, opts)
if not vim.go.loadplugins then
return
end
local start = vim.loop.hrtime()
-- load module cache before anything else