Skip to content

Commit

Permalink
docs(neorg/core/modules): allow arbitrary values within `neorg.module…
Browse files Browse the repository at this point in the history
….public`
  • Loading branch information
vhyrro committed Jan 6, 2024
1 parent 0edde97 commit 252ebd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/neorg/core/modules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ local config = require("neorg.core.config")
local log = require("neorg.core.log")
local utils = require("neorg.core.utils")

--- @class neorg.module.public
--- @field version string Current Norg version that this module supports.
--- @alias neorg.module.public { version: string, [any]: any }

--- @class (exact) neorg.module.configuration
--- Defines both a public and private configuration for a Neorg module.
Expand Down Expand Up @@ -418,6 +417,9 @@ function modules.load_module_from_table(module)
line_content = "",
content = module,
broadcast = true,
buffer = vim.api.nvim_get_current_buf(),
window = vim.api.nvim_get_current_win(),
mode = vim.fn.mode(),
})

return true
Expand Down

0 comments on commit 252ebd1

Please sign in to comment.