nvim/lua/cosmic/init.lua

16 lines
407 B
Lua

local mods = {
'cosmic.compiled',
'cosmic.core',
'cosmic.theme',
}
for _, mod in ipairs(mods) do
local ok, err = pcall(require, mod)
if mod == 'cosmic.compiled' and not ok then
vim.notify('Run :PackerCompile!', vim.log.levels.WARN, {
title = 'CosmicNvim',
})
elseif not ok and not mod:find('cosmic.config') then
error(('Error loading %s...\n\n%s'):format(mod, err))
end
end