2021-07-09 03:44:04 +00:00
|
|
|
require "options"
|
2021-03-12 07:04:15 +00:00
|
|
|
|
2021-07-20 18:19:31 +00:00
|
|
|
local chad_modules = {
|
|
|
|
"pluginList",
|
2021-07-21 04:20:00 +00:00
|
|
|
"mappings",
|
|
|
|
"utils"
|
2021-07-20 18:19:31 +00:00
|
|
|
}
|
|
|
|
|
2021-07-18 16:41:52 +00:00
|
|
|
local async
|
|
|
|
async =
|
|
|
|
vim.loop.new_async(
|
|
|
|
vim.schedule_wrap(
|
|
|
|
function()
|
2021-07-20 18:19:31 +00:00
|
|
|
for i = 1, #chad_modules, 1 do
|
|
|
|
local ok, res = xpcall(require, debug.traceback, chad_modules[i])
|
|
|
|
if not (ok) then
|
2021-07-21 17:30:19 +00:00
|
|
|
print("Error loading module : " .. chad_modules[i])
|
2021-07-20 18:19:31 +00:00
|
|
|
print(res) -- print stack traceback of the error
|
|
|
|
end
|
|
|
|
end
|
2021-07-18 16:41:52 +00:00
|
|
|
async:close()
|
|
|
|
end
|
2021-07-15 15:47:47 +00:00
|
|
|
)
|
2021-07-18 16:41:52 +00:00
|
|
|
)
|
|
|
|
async:send()
|