From 08c0020ceca7b267561511d36e56037380c57ea9 Mon Sep 17 00:00:00 2001
From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
Date: Sat, 14 Dec 2024 14:50:08 +0100
Subject: refactor(modules/nvim/plgs/neorg): Migrate to new RFC 42 module

---
 modules/by-name/nv/nvim/plgs/neorg/default.nix | 72 ++++++++++++++------------
 1 file changed, 38 insertions(+), 34 deletions(-)

(limited to 'modules/by-name/nv/nvim/plgs/neorg')

diff --git a/modules/by-name/nv/nvim/plgs/neorg/default.nix b/modules/by-name/nv/nvim/plgs/neorg/default.nix
index 41c80673..03afb16c 100644
--- a/modules/by-name/nv/nvim/plgs/neorg/default.nix
+++ b/modules/by-name/nv/nvim/plgs/neorg/default.nix
@@ -19,43 +19,47 @@ in {
 
       neorg = {
         enable = true;
-        lazyLoading = true;
+        telescopeIntegration.enable = true;
 
-        modules = {
-          "core.defaults" = {
-            __empty = null;
-          };
-          "core.esupports.metagen".config = {
-            type = "auto";
-          };
-          "core.journal".config = {
-            workspace = "journal";
-          };
-          "core.keybinds".config = {
-            __empty = null;
-          };
-          "core.completion".config = {
-            engine = "nvim-cmp";
-          };
-          "core.concealer".config = {
-            __empty = null;
-          };
-          "core.dirman".config = {
-            workspaces = {
-              general = "~/repos/notes/general";
-              journal = "~/repos/notes/journal";
-              projects = "~/repos/notes/projects";
+        settings = {
+          lazy_loading = true;
+
+          load = {
+            "core.defaults" = {
+              __empty = null;
+            };
+            "core.esupports.metagen".config = {
+              type = "auto";
+            };
+            "core.journal".config = {
+              workspace = "journal";
+            };
+            "core.keybinds".config = {
+              __empty = null;
+            };
+            "core.completion".config = {
+              engine = "nvim-cmp";
+            };
+            "core.concealer".config = {
+              __empty = null;
+            };
+            "core.dirman".config = {
+              workspaces = {
+                general = "~/repos/notes/general";
+                journal = "~/repos/notes/journal";
+                projects = "~/repos/notes/projects";
+              };
+            };
+            "core.export".config = {
+              __empty = null;
+            };
+            "core.integrations.telescope".config = {
+              __empty = null;
             };
-          };
-          "core.export".config = {
-            __empty = null;
-          };
-          "core.integrations.telescope".config = {
-            __empty = null;
-          };
 
-          "core.ui.calendar".config = {
-            __empty = null;
+            "core.ui.calendar".config = {
+              __empty = null;
+            };
           };
         };
       };
-- 
cgit 1.4.1