mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
chore: Clean init.lua
Why do we have a table to require a single module. We had this when we had plugins, colors etc. But we only have one module now. So why bother a list and looping through for a single module ?
This commit is contained in:
parent
dc80ae5795
commit
8726de1faa
1 changed files with 3 additions and 9 deletions
8
init.lua
8
init.lua
|
@ -1,10 +1,4 @@
|
||||||
local init_modules = {
|
local ok, err = pcall(require, "core")
|
||||||
"core",
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, module in ipairs(init_modules) do
|
|
||||||
local ok, err = pcall(require, module)
|
|
||||||
if not ok then
|
if not ok then
|
||||||
error("Error loading " .. module .. "\n\n" .. err)
|
error("Error loading " .. module .. "\n\n" .. err)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in a new issue