Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small true-zen integration folder structure fix #1477

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some of these double blank lines will get removed by stylua which will make CI fail when it does run, so good idea to remove them now :)

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar for this empty line at the end of the file