From 8afb4ac78d8ec6f9c52a971cd3721a10e734c603 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Tue, 17 Oct 2023 07:45:29 -0700 Subject: [PATCH] neorg config improvements. Remove mind. --- lua/plugins/mind.lua | 19 ------------------- lua/plugins/neorg.lua | 19 ++++++++++++++++--- 2 files changed, 16 insertions(+), 22 deletions(-) delete mode 100644 lua/plugins/mind.lua diff --git a/lua/plugins/mind.lua b/lua/plugins/mind.lua deleted file mode 100644 index 3cba289..0000000 --- a/lua/plugins/mind.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - "phaazon/mind.nvim", - branch = "v2.2", - keys = { - { "nm", "MindOpenMain", desc = "Open Main Mind" }, - { "np", "MindOpenProject", desc = "Open Mind for current project" }, - { "ns", "MindOpenSmartProject", desc = "Open Mind for smart project" }, - { "nc", "MindClose", desc = "Close Mind" }, - { "nr", "MindReloadState", desc = "Mind: Reload State" }, - }, - config = function() - require("mind").setup({ - persistence = { - data_dir = "~/Documents/mind.nvim/data", - state_path = "~/Documents/mind.nvim/mind.json", - }, - }) - end, -} diff --git a/lua/plugins/neorg.lua b/lua/plugins/neorg.lua index d1dccd5..35f4200 100644 --- a/lua/plugins/neorg.lua +++ b/lua/plugins/neorg.lua @@ -1,17 +1,30 @@ return { "nvim-neorg/neorg", + lazy = false, build = ":Neorg sync-parsers", dependencies = { "nvim-lua/plenary.nvim" }, + keys = { + { "ni", "Neorg index", desc = "Index" }, + { "ns", "Neorg generate-workspace-summary", desc = "Generate Workspace Summary" }, + { "njt", "Neorg journal today", desc = "Journal Today" }, + { "njT", "Neorg journal template", desc = "Journal Template" }, + }, config = function() require("neorg").setup { load = { - ["core.defaults"] = {}, -- Loads default behaviour - ["core.concealer"] = {}, -- Adds pretty icons to your documents - ["core.dirman"] = { -- Manages Neorg workspaces + ["core.defaults"] = {}, + ["core.summary"] = {}, + ["core.ui.calendar"] = {}, + ["core.concealer"] = { + icon_preset = "diamond" + }, + ["core.dirman"] = { config = { workspaces = { notes = "~/notes", + til = "~/til", }, + default_workspace = "notes", }, }, },