From a7ac2ad0204d63ece6ebca76ae906db53346c8a4 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 4 Jan 2023 12:40:00 +0100 Subject: [PATCH] feat(loader): disable plugins --- lua/lazy/core/loader.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/lazy/core/loader.lua b/lua/lazy/core/loader.lua index c82654b..c2bc844 100644 --- a/lua/lazy/core/loader.lua +++ b/lua/lazy/core/loader.lua @@ -16,9 +16,13 @@ M.disabled_rtp_plugins = { packer_compiled = true } ---@type table M.did_ftdetect = {} +function M.disable_rtp_plugin(plugin) + M.disabled_rtp_plugins[plugin] = true +end + function M.setup() for _, file in ipairs(Config.options.performance.rtp.disabled_plugins) do - M.disabled_rtp_plugins[file] = true + M.disable_rtp_plugin(file) end vim.api.nvim_create_autocmd("ColorSchemePre", {