Skip to content

Commit ace1cda

Browse files
authored
fix: broken true-zen integration (#1477)
1 parent 286d94b commit ace1cda

File tree

1 file changed

+8
-2
lines changed
  • lua/neorg/modules/core/integrations/truezen

1 file changed

+8
-2
lines changed

lua/neorg/modules/core/integrations/truezen/module.lua

+8-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44
summary: Integrates the TrueZen module for use within Neorg.
55
internal: true
66
---
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.
88
--]]
99

1010
local neorg = require("neorg.core")
11-
local modules = neorg.modules
11+
local modules, log = neorg.modules, neorg.log
1212

1313
local module = modules.create("core.integrations.truezen")
1414

15+
1516
module.setup = function()
1617
local success, truezen = pcall(require, "true-zen.main")
18+
local success, truezen = pcall(require, "true-zen")
19+
1720

1821
if not success then
22+
log.warn("Could not find module: `true-zen`. Please ensure you have true-zen installed.")
23+
1924
return { success = false }
2025
end
2126

@@ -34,3 +39,4 @@ module.public = {
3439
}
3540

3641
return module
42+

0 commit comments

Comments
 (0)