nvchad/init.lua

26 lines
571 B
Lua
Raw Normal View History

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