load mappings after custom init.lua

this ensures that custom leader key will work properly
pull/1797/head
siduck 1 year ago
parent 3384f81639
commit a3ea8a9f4d

@ -1,6 +1,5 @@
require "core"
require "core.options"
require("core.utils").load_mappings()
local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1]
@ -8,9 +7,11 @@ if custom_init_path then
dofile(custom_init_path)
end
-- bootstrap lazy.nvim!
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)

Loading…
Cancel
Save