Skip to content

Commit

Permalink
fix: broken configuration merging in modules.lua (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 authored Sep 6, 2023
1 parent 20502e5 commit b4c7935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/core/modules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function modules.load_module(module_name, cfg)
-- Load the user-defined config
if cfg and not vim.tbl_isempty(cfg) then
module.config.custom = cfg
module.config.public = vim.tbl_deep_extend("force", module.config.public, config)
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 {})
end
Expand Down

0 comments on commit b4c7935

Please sign in to comment.