From: Samir Benmendil Date: Sun, 7 Apr 2024 00:34:20 +0000 (+0100) Subject: nvim: add neorg plugin X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/37b121800b246a9c052706131876abad8404b663 nvim: add neorg plugin --- diff --git a/nvim/lua/plugins/core.lua b/nvim/lua/plugins/core.lua index fecdfd8..b3f49a2 100644 --- a/nvim/lua/plugins/core.lua +++ b/nvim/lua/plugins/core.lua @@ -10,4 +10,9 @@ return { }, }, }, + { + "vhyrro/luarocks.nvim", + priority = 1000, + config = true, + } } diff --git a/nvim/lua/plugins/productivity.lua b/nvim/lua/plugins/productivity.lua index c7029b7..ecae57b 100644 --- a/nvim/lua/plugins/productivity.lua +++ b/nvim/lua/plugins/productivity.lua @@ -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", "", "") -- rebind core.itero.next-iteration + keybinds.remap_event("all", "n", "", "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"] = {}, + }, + } + }, }