Skip to content

Commit a7ac2ad

Browse files
committed
feat(loader): disable plugins
1 parent 09fd8fa commit a7ac2ad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/lazy/core/loader.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ M.disabled_rtp_plugins = { packer_compiled = true }
1616
---@type table<string,string>
1717
M.did_ftdetect = {}
1818

19+
function M.disable_rtp_plugin(plugin)
20+
M.disabled_rtp_plugins[plugin] = true
21+
end
22+
1923
function M.setup()
2024
for _, file in ipairs(Config.options.performance.rtp.disabled_plugins) do
21-
M.disabled_rtp_plugins[file] = true
25+
M.disable_rtp_plugin(file)
2226
end
2327

2428
vim.api.nvim_create_autocmd("ColorSchemePre", {

0 commit comments

Comments
 (0)