load mappings after custom init.lua
this ensures that custom leader key will work properly
This commit is contained in:
parent
3384f81639
commit
a3ea8a9f4d
1 changed files with 3 additions and 2 deletions
5
init.lua
5
init.lua
|
@ -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…
Reference in a new issue