]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: add neorg plugin
authorSamir Benmendil <me@rmz.io>
Sun, 7 Apr 2024 00:34:20 +0000 (01:34 +0100)
committerSamir Benmendil <me@rmz.io>
Sun, 7 Apr 2024 00:34:20 +0000 (01:34 +0100)
nvim/lua/plugins/core.lua
nvim/lua/plugins/productivity.lua

index fecdfd8ad1686716452ee2165e0861689bad9349..b3f49a209ec339c012368624f4d3d1873bb258c6 100644 (file)
@@ -10,4 +10,9 @@ return {
       },
     },
   },
+  {
+    "vhyrro/luarocks.nvim",
+    priority = 1000,
+    config = true,
+  }
 }
index c7029b79ca9c0962260ca9d1f1e115436fa45924..ecae57ba3b284a9da943688dfe3bb89743110da0 100644 (file)
@@ -114,4 +114,65 @@ SCHEDULED: %t
       },
     },
   },
+  { "nvim-neorg/neorg",
+    lazy = false,
+    version = "*",
+    dependencies = {
+      "nvim-lua/plenary.nvim",
+      "luarocks.nvim",
+      { "nvim-cmp",
+        opts = function(_, opts)
+          table.insert(opts.sources, { name = "neorg" })
+        end,
+      },
+    },
+    opts = {
+      load = {
+        ["core.defaults"] = {},
+        ["core.concealer"] = {
+          config = {
+            icon_preset = "diamond"
+          }
+        },
+        ["core.dirman"] = {
+          config = {
+            workspaces = {
+              home = "~/norg/home",
+            },
+            default_workspace = "home",
+          },
+        },
+        ["core.keybinds"] = {
+          config = {
+            neorg_leader = "go",
+            hook = function(keybinds)
+              -- keybinds.remap_key("norg", "i", "<M-CR>", "<C-CR>")  -- rebind core.itero.next-iteration
+              keybinds.remap_event("all", "n", "<C-E>", "core.looking-glass.magnify-code-block")
+            end,
+          },
+        },
+        ["core.completion"] = {
+          config = {
+            engine = "nvim-cmp",
+          }
+        },
+        ["core.summary"] = {
+          config = {
+            strategy = "by_path",
+          },
+        },
+        ["core.itero"] = {},
+        ["core.promo"] = {},
+        ["core.journal"] = {
+          config = {
+            journal_folder = "journal",
+          },
+        },
+        ["core.looking-glass"] = {},
+        ["core.qol.todo_items"] = {},
+        ["core.tangle"] = {},
+        ["core.ui.calendar"] = {},
+      },
+    }
+  },
 }