Skip to content

Commit

Permalink
fix(core): assign custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom authored and vhyrro committed Sep 18, 2023
1 parent 069cf8a commit 4b057ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/neorg/core/modules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b057ad

Please sign in to comment.