Skip to content

Commit

Permalink
feat(loader): disable plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 4, 2023
1 parent 09fd8fa commit a7ac2ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/lazy/core/loader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ M.disabled_rtp_plugins = { packer_compiled = true }
---@type table<string,string>
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", {
Expand Down

0 comments on commit a7ac2ad

Please sign in to comment.