mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-12 12:50:37 +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
12 lines
229 B
Lua
12 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()
|