Skip to content

Commit

Permalink
docs(neorg): fix emmylua warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jan 6, 2024
1 parent 2dc629c commit 743d6df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/neorg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ local neorg = require("neorg.core")
local config, log, modules = neorg.config, neorg.log, neorg.modules

--- Initializes Neorg. Parses the supplied user configuration, initializes all selected modules and adds filetype checking for `.norg`.
--- @param cfg table A table that reflects the structure of `config.user_config`.
--- @param cfg neorg.configuration.user A table that reflects the structure of `config.user_config`.
--- @see config.user_config
--- @see neorg.configuration.user
function neorg.setup(cfg)
config.user_config = vim.tbl_deep_extend("force", config.user_config, cfg or {})

Expand Down Expand Up @@ -113,6 +114,9 @@ function neorg.org_file_entered(manual, arguments)
referrer = "core",
line_content = "",
broadcast = true,
buffer = vim.api.nvim_get_current_buf(),
window = vim.api.nvim_get_current_win(),
mode = vim.fn.mode(),
})

-- Sometimes external plugins prefer hooking in to an autocommand
Expand Down

0 comments on commit 743d6df

Please sign in to comment.