Skip to content

Commit 3d50b49

Browse files
committed
fix: clear package.loaded cache when first installing neorg
1 parent 830d815 commit 3d50b49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/neorg/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ function neorg.setup(cfg)
4141
"Warning [neorg]: lua-utils not found. If you're just installing the plugin, ignore this message, when in doubt run `:Lazy build neorg`. If you're not on lazy please rerun the build scripts.",
4242
vim.log.levels.WARN
4343
)
44+
45+
-- Allow neorg to be reloaded once more.
46+
package.loaded.neorg = nil
47+
4448
user_configuration = cfg
4549
return
4650
end

0 commit comments

Comments
 (0)