Skip to content

Commit

Permalink
fix(base.lua): don't assign the extension flag to parent modules, o…
Browse files Browse the repository at this point in the history
…nly to the imports themselves
  • Loading branch information
vhyrro committed Feb 3, 2023
1 parent 264b451 commit fa5f561
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/neorg/modules/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ function neorg.modules.extend(name, parent)

if parent then
local path = realmodule.path
realmodule = vim.tbl_deep_extend("force", realmodule, neorg.modules.loaded_modules[parent].real())

local parent_module = neorg.modules.loaded_modules[parent].real()
realmodule = vim.tbl_deep_extend("force", realmodule, parent_module)
parent_module.extension = parent_module.extension or false

realmodule.name, realmodule.path = name, path
end

Expand Down

0 comments on commit fa5f561

Please sign in to comment.