mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
refactor: move core modules needed for loading under core
This commit is contained in:
parent
3218c2d9ec
commit
fca984b18c
12 changed files with 27 additions and 32 deletions
|
@ -102,9 +102,9 @@ function M.setup()
|
|||
|
||||
-- preload core modules
|
||||
local root = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h:h")
|
||||
for _, name in ipairs({ "util", "config", "plugin", "loader", "core.state" }) do
|
||||
local modname = "lazy." .. name
|
||||
M.add(modname, root .. "/" .. name:gsub("%.", "/") .. ".lua")
|
||||
for _, name in ipairs({ "util", "config", "loader", "state" }) do
|
||||
local modname = "lazy.core." .. name
|
||||
M.add(modname, root .. "/core/" .. name:gsub("%.", "/") .. ".lua")
|
||||
end
|
||||
|
||||
table.insert(package.loaders, 2, function(modname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue