refactor: move handlers to its own file

This commit is contained in:
Folke Lemaitre 2022-11-26 21:29:40 +01:00
parent 870d8924f7
commit 05a0da532b
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 169 additions and 180 deletions

View file

@ -54,7 +54,7 @@ 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", "loader", "plugin" }) do
for _, name in ipairs({ "util", "config", "loader", "plugin", "handler" }) do
local modname = "lazy.core." .. name
---@diagnostic disable-next-line: no-unknown
package.preload[modname] = function()