-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
27 lines (20 loc) · 742 Bytes
/
init.lua
File metadata and controls
27 lines (20 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require "core"
-- The false argument ensures it stops at the first match (if multiple exist).
local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1]
local globals_file_path = vim.api.nvim_get_runtime_file("lua/custom/globals.lua", false)[1]
if custom_init_path then
dofile(custom_init_path)
end
if globals_file_path then
dofile(globals_file_path)
end
require("core.utils").load_mappings()
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
-- bootstrap lazy.nvim!
if not vim.loop.fs_stat(lazypath) then
require("core.bootstrap").gen_chadrc_template()
require("core.bootstrap").lazy(lazypath)
end
dofile(vim.g.base46_cache .. "defaults")
vim.opt.rtp:prepend(lazypath)
require "plugins"