nvim/lua/cosmic/core/init.lua
2023-01-13 07:13:25 -08:00

28 lines
649 B
Lua

local cosmic_modules = {
'cosmic.core.editor',
'cosmic.core.pluginsInit',
'cosmic.core.commands',
'cosmic.lsp',
'cosmic.config.editor',
-- load mappings only after editor configs are loaded
'cosmic.core.mappings',
}
-- set up lazy.nvim to install plugins
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'--single-branch',
'https://github.com/folke/lazy.nvim.git',
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- set up cosmicnvim
for _, mod in ipairs(cosmic_modules) do
require(mod)
end