|
|
@ -1,15 +1,24 @@
|
|
|
|
require "options"
|
|
|
|
require "options"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local chad_modules = {
|
|
|
|
|
|
|
|
"pluginList",
|
|
|
|
|
|
|
|
"plugins.bufferline",
|
|
|
|
|
|
|
|
"mappings",
|
|
|
|
|
|
|
|
"utils"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
local async
|
|
|
|
local async
|
|
|
|
async =
|
|
|
|
async =
|
|
|
|
vim.loop.new_async(
|
|
|
|
vim.loop.new_async(
|
|
|
|
vim.schedule_wrap(
|
|
|
|
vim.schedule_wrap(
|
|
|
|
function()
|
|
|
|
function()
|
|
|
|
require "pluginList"
|
|
|
|
for i = 1, #chad_modules, 1 do
|
|
|
|
require "plugins.bufferline"
|
|
|
|
local ok, res = xpcall(require, debug.traceback, chad_modules[i])
|
|
|
|
require "mappings"
|
|
|
|
if not (ok) then
|
|
|
|
require("utils").hideStuff()
|
|
|
|
print("Error loading module : " .. chad_modules[i])
|
|
|
|
|
|
|
|
print(res) -- print stack traceback of the error
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
async:close()
|
|
|
|
async:close()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
)
|
|
|
|
)
|
|
|
|