From 481523f2e8e0b2e608cce9c3145a5fe66afa2667 Mon Sep 17 00:00:00 2001 From: squont Date: Mon, 24 Jun 2024 11:18:25 +1000 Subject: [PATCH] update to reflect correct true-zen folder structure --- lua/neorg/modules/core/integrations/truezen/module.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/neorg/modules/core/integrations/truezen/module.lua b/lua/neorg/modules/core/integrations/truezen/module.lua index 184bf261e..4c32f91fe 100644 --- a/lua/neorg/modules/core/integrations/truezen/module.lua +++ b/lua/neorg/modules/core/integrations/truezen/module.lua @@ -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 @@ -34,3 +39,4 @@ module.public = { } return module +