2022-08-12 08:19:12 +02:00
|
|
|
vim.defer_fn(function()
|
|
|
|
pcall(require, "impatient")
|
|
|
|
end, 0)
|
|
|
|
|
2022-05-23 09:24:03 +02:00
|
|
|
require "core"
|
|
|
|
require "core.options"
|
2022-05-31 21:19:23 +02:00
|
|
|
|
2022-11-22 03:59:48 +01:00
|
|
|
pcall(function()
|
|
|
|
loadfile(vim.g.base46_cache .. "bg")()
|
|
|
|
end)
|
|
|
|
|
2022-05-23 09:24:03 +02:00
|
|
|
-- setup packer + plugins
|
2022-08-06 05:58:05 +02:00
|
|
|
local fn = vim.fn
|
|
|
|
local install_path = fn.stdpath "data" .. "/site/pack/packer/opt/packer.nvim"
|
|
|
|
|
|
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
2022-12-24 19:14:00 +01:00
|
|
|
require("core.bootstrap").chadrc_template()
|
2022-12-24 18:03:33 +01:00
|
|
|
require("core.bootstrap").packer(install_path)
|
2022-08-06 05:58:05 +02:00
|
|
|
end
|
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
|
|
|
|
|
|
|
require("core.utils").load_mappings()
|