about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim/plugins/neorg
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-08-27 20:53:32 +0200
committerSoispha <soispha@vhack.eu>2023-08-27 20:53:32 +0200
commitdf580aaf4d427da607654972db63f7a78d7250db (patch)
tree83531c12b8a5ddcb1396cbe43cbc6e1e5277433c /hm/soispha/conf/nvim/plugins/neorg
parentFix(hm/conf/nvim/plugins/femaco): Actually bind key to function (diff)
downloadnixos-config-df580aaf4d427da607654972db63f7a78d7250db.zip
Feat(hm/conf/nvim/plugins/neorg): Init
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/nvim/plugins/neorg/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/hm/soispha/conf/nvim/plugins/neorg/default.nix b/hm/soispha/conf/nvim/plugins/neorg/default.nix
new file mode 100644
index 00000000..74ab332d
--- /dev/null
+++ b/hm/soispha/conf/nvim/plugins/neorg/default.nix
@@ -0,0 +1,43 @@
+{...}: {
+  programs.nixvim.plugins.neorg = {
+    enable = true;
+    lazyLoading = true;
+
+    modules = {
+      "core.defaults" = {
+        __empty = null;
+      };
+      "core.metagen".config = {
+        type = "auto";
+      };
+      "core.journal".config = {
+        workspace = "journal";
+      };
+      "core.keybinds".config = {
+        hook = {
+          __raw = ''
+            function(keybinds)
+                -- remap the looking glas to the same key, femaco is also mapped to.
+                keybinds.remap_event("norg", "n", "<space>cc", "core.looking-glass.magnify-code-block")
+
+                keybinds.remap_event("norg", "n", "<C-s>", "core.integrations.telescope.find_linkable")
+                keybinds.remap_event("norg", "i", "<C-i>", "core.integrations.telescope.insert_link")
+            end,
+          '';
+        };
+      };
+      "core.completion".config = {
+        engine = "nvim-cmp";
+      };
+      "core.concealer".config = {};
+      "core.dirman".config = {
+        workspaces = {
+          general = "~/notes/general";
+          journal = "~/notes/journal";
+        };
+      };
+      "core.export".config = {};
+      "core.ui.calendar".config = {};
+    };
+  };
+}