From 59fb0507677628c16425dc2741f005f5394e8102 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 2 Dec 2022 10:02:34 +0100 Subject: [PATCH] fix: respect --noplugin --- lua/lazy/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/lazy/init.lua b/lua/lazy/init.lua index 602f3c0..2b760b9 100644 --- a/lua/lazy/init.lua +++ b/lua/lazy/init.lua @@ -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