2022-05-23 09:24:03 +02:00
|
|
|
require "core"
|
|
|
|
require "core.options"
|
2023-01-07 09:11:43 +01:00
|
|
|
require("core.utils").load_mappings()
|
2022-05-23 11:24:59 +02:00
|
|
|
|
2022-12-17 12:34:52 +01:00
|
|
|
local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1]
|
|
|
|
|
|
|
|
if custom_init_path then
|
|
|
|
dofile(custom_init_path)
|
|
|
|
end
|
2022-08-15 15:53:55 +02:00
|
|
|
|
2023-01-07 09:11:43 +01:00
|
|
|
-- bootstrap lazy.nvim!
|
|
|
|
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
|
|
|
|
|
|
|
if not vim.loop.fs_stat(lazypath) then
|
|
|
|
require("core.bootstrap").gen_chadrc_template()
|
|
|
|
require("core.bootstrap").lazy(lazypath)
|
|
|
|
end
|
|
|
|
|
|
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
require "plugins"
|
|
|
|
|
|
|
|
loadfile(vim.g.base46_cache .. "defaults")()
|