We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fbb1d7 commit f81ac7fCopy full SHA for f81ac7f
lua/neorg.lua lua/neorg/init.lua
@@ -17,12 +17,18 @@ local user_configuration
17
--- @see config.user_config
18
--- @see neorg.configuration.user
19
function neorg.setup(cfg)
20
+ cfg = cfg or {
21
+ load = {
22
+ ["core.defaults"] = {},
23
+ }
24
25
+
26
if not (pcall(require, "lua-utils")) then
- user_configuration = cfg or {}
27
+ user_configuration = cfg
28
return
29
end
30
- config.user_config = vim.tbl_deep_extend("force", config.user_config, cfg or {})
31
+ config.user_config = vim.tbl_deep_extend("force", config.user_config, cfg)
32
33
-- Create a new global instance of the neorg logger.
34
log.new(config.user_config.logger or log.get_default_config(), true)
0 commit comments