Skip to content

Commit

Permalink
fix: broken true-zen integration (#1477)
Browse files Browse the repository at this point in the history
  • Loading branch information
squont authored Jun 25, 2024
1 parent 286d94b commit ace1cda
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/neorg/modules/core/integrations/truezen/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@
summary: Integrates the TrueZen module for use within Neorg.
internal: true
---
This is a basic wrapper around truezen that allows one to toggle the atraxis mode programatically.
This is a basic wrapper around truezen that allows one to toggle the atraxis mode programmatically.
--]]

local neorg = require("neorg.core")
local modules = neorg.modules
local modules, log = neorg.modules, neorg.log

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


module.setup = function()
local success, truezen = pcall(require, "true-zen.main")
local success, truezen = pcall(require, "true-zen")


if not success then
log.warn("Could not find module: `true-zen`. Please ensure you have true-zen installed.")

return { success = false }
end

Expand All @@ -34,3 +39,4 @@ module.public = {
}

return module

0 comments on commit ace1cda

Please sign in to comment.