From 4b057ad071f0e395fb1e983c9611913e9b46108f Mon Sep 17 00:00:00 2001 From: champignoom Date: Sun, 17 Sep 2023 01:15:47 +0800 Subject: [PATCH] fix(core): assign custom field --- lua/neorg/core/modules.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/neorg/core/modules.lua b/lua/neorg/core/modules.lua index 7d31003ba..ec19f361a 100644 --- a/lua/neorg/core/modules.lua +++ b/lua/neorg/core/modules.lua @@ -468,7 +468,8 @@ function modules.load_module(module_name, cfg) module.config.custom = cfg module.config.public = vim.tbl_deep_extend("force", module.config.public, cfg) else - module.config.public = vim.tbl_deep_extend("force", module.config.public, config.modules[module_name] or {}) + module.config.custom = config.modules[module_name] + module.config.public = vim.tbl_deep_extend("force", module.config.public, module.config.custom or {}) end -- Pass execution onto load_module_from_table() and let it handle the rest