mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-24 17:58:51 +02:00
fix(extras): better reasons as to why some extras are included in your config.
This commit is contained in:
parent
6efbdabd1b
commit
eeccbbc407
4 changed files with 45 additions and 5 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue