mirror of https://github.com/folke/lazy.nvim.git
feat(loader): disable plugins
This commit is contained in:
parent
09fd8fabd2
commit
a7ac2ad020
|
@ -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", {
|
||||
|
|
Loading…
Reference in New Issue