neovim-config/init.lua

23 lines
513 B
Lua
Raw Permalink Normal View History

require "core"
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
require("core.utils").load_mappings()
2023-01-07 08:11:43 +00:00
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
-- bootstrap lazy.nvim!
2023-01-07 08:11:43 +00:00
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"
2023-01-29 16:06:54 +00:00
dofile(vim.g.base46_cache .. "defaults")