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