mirror of https://github.com/folke/lazy.nvim.git
fix: respect --noplugin
This commit is contained in:
parent
60e8a01b94
commit
59fb050767
|
@ -3,6 +3,9 @@ local M = {}
|
||||||
---@param spec LazySpec Should be a module name to load, or a plugin spec
|
---@param spec LazySpec Should be a module name to load, or a plugin spec
|
||||||
---@param opts? LazyConfig
|
---@param opts? LazyConfig
|
||||||
function M.setup(spec, opts)
|
function M.setup(spec, opts)
|
||||||
|
if not vim.go.loadplugins then
|
||||||
|
return
|
||||||
|
end
|
||||||
local start = vim.loop.hrtime()
|
local start = vim.loop.hrtime()
|
||||||
|
|
||||||
-- load module cache before anything else
|
-- load module cache before anything else
|
||||||
|
|
Loading…
Reference in New Issue