mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-08 13:10:25 +00:00
02f0122ab4
because mappings.lua is called from multiple places, so there should't be any code that executes without calling a specific function show error message when something fails in init.lua makes no sense to not rearrange plugin functions alphabetically, but keep misc at top
13 lines
229 B
Lua
13 lines
229 B
Lua
local chad_modules = {
|
|
"options",
|
|
"mappings",
|
|
}
|
|
|
|
for i = 1, #chad_modules, 1 do
|
|
if not pcall(require, chad_modules[i]) then
|
|
error("Error loading " .. chad_modules[i] .. "\n")
|
|
end
|
|
end
|
|
|
|
require("mappings").misc()
|