fix(extras): better reasons as to why some extras are included in your config.

This commit is contained in:
Folke Lemaitre 2024-06-14 11:13:56 +02:00
parent 6efbdabd1b
commit eeccbbc407
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 45 additions and 5 deletions

View file

@ -3,6 +3,9 @@ local Plugin = require("lazy.core.plugin")
---@class lazyvim.util.plugin
local M = {}
---@type string[]
M.core_imports = {}
M.lazy_file_events = { "BufReadPost", "BufNewFile", "BufWritePre" }
---@type table<string, string>
@ -32,6 +35,13 @@ M.renames = {
["glepnir/dashboard-nvim"] = "nvimdev/dashboard-nvim",
}
function M.save_core()
if vim.v.vim_did_enter == 1 then
return
end
M.core_imports = vim.deepcopy(require("lazy.core.config").spec.modules)
end
function M.setup()
M.fix_imports()
M.fix_renames()