Skip to content

how to acess a module's api? #343

Answered by vhyrro
dark-ether asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! To do that you simply do require("neorg").modules.get_module("core.mode").get_mode() or alternatively require("neorg.modules").get_module("core.mode").get_mode().

You can check out all the functions for accessing different parts of the module system in the lua/neorg/modules.lua file, almost all of them are documented :P, hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dark-ether
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants