From a3ea8a9f4da99368b52f204d8c9eca5acf7bbcff Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 1 Mar 2023 14:29:12 +0530 Subject: [PATCH] load mappings after custom init.lua this ensures that custom leader key will work properly --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index e718a05..e595772 100644 --- a/init.lua +++ b/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)