how to acess a module's api? #343
-
for instance if i wanted to use the core.mode get_ mode() function how do i do that? i tried require |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey! To do that you simply do You can check out all the functions for accessing different parts of the module system in the |
Beta Was this translation helpful? Give feedback.
Hey! To do that you simply do
require("neorg").modules.get_module("core.mode").get_mode()
or alternativelyrequire("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!