]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/plugins/productivity.lua
nvim: remove nvim-cmp from neorg completion
[dotfiles.git] / nvim / lua / plugins / productivity.lua
index a612c82789e969bc83ed9b61a80f3e84fe2f0a70..8b91501985ecfe91394270b2f763902670bd1719 100644 (file)
@@ -54,7 +54,7 @@ return {
       org_archive_location = "archive/%s_archive::",
       org_log_done = 'time',
       org_log_into_drawer = "LOGBOOK",
-      org_indent_mode = "noindent",
+      org_startup_indented = "noindent",
       org_tags_column = -80, -- flushright
       org_todo_keywords = { "TODO(t)", "NEXT(n)", "WAITING(w)", "|", "DONE", "CANCELLED" },
       org_todo_keyword_faces = {
@@ -98,23 +98,56 @@ SCHEDULED: %t
         },
       },
     },
+  },
+  { "nvim-neorg/neorg",
+    lazy = false,
+    version = "*",
     dependencies = {
-      {
-        "nvim-treesitter",
-        opts = function(_, opts)
-          if type(opts.highlight) == "table" then
-            opts.hightlight = vim.tbl_extend("error", opts.highlight, {
-              additional_vim_regex_highlighting = { "org" },
-            })
-          end
-          if type(opts.ensure_installed) == "table" then
-            vim.list_extend(opts.ensure_installed, { "org" })
-          end
-        end,
-      },
+      "nvim-lua/plenary.nvim",
+      "luarocks.nvim",
     },
-    init = function()
-      require("orgmode").setup_ts_grammar()
-    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.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"] = {},
+      },
+    }
   },
 }