Commit ace1cda 1 parent 286d94b commit ace1cda Copy full SHA for ace1cda
File tree 1 file changed +8
-2
lines changed
lua/neorg/modules/core/integrations/truezen
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
summary: Integrates the TrueZen module for use within Neorg.
5
5
internal: true
6
6
---
7
- This is a basic wrapper around truezen that allows one to toggle the atraxis mode programatically .
7
+ This is a basic wrapper around truezen that allows one to toggle the atraxis mode programmatically .
8
8
--]]
9
9
10
10
local neorg = require (" neorg.core" )
11
- local modules = neorg .modules
11
+ local modules , log = neorg .modules , neorg . log
12
12
13
13
local module = modules .create (" core.integrations.truezen" )
14
14
15
+
15
16
module .setup = function ()
16
17
local success , truezen = pcall (require , " true-zen.main" )
18
+ local success , truezen = pcall (require , " true-zen" )
19
+
17
20
18
21
if not success then
22
+ log .warn (" Could not find module: `true-zen`. Please ensure you have true-zen installed." )
23
+
19
24
return { success = false }
20
25
end
21
26
@@ -34,3 +39,4 @@ module.public = {
34
39
}
35
40
36
41
return module
42
+
You can’t perform that action at this time.
0 commit comments