From 939e7ae2daceeb472db3299661def2ea47c66ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Flo=C3=9Fmann?= Date: Mon, 15 Sep 2025 10:45:25 +0200 Subject: [PATCH] add orgmode --- lua/plugins/orgmode.lua | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lua/plugins/orgmode.lua diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua new file mode 100644 index 0000000..788edfb --- /dev/null +++ b/lua/plugins/orgmode.lua @@ -0,0 +1,41 @@ +---@type LazySpec +return { + { + "nvim-orgmode/orgmode", + event = "VeryLazy", + config = function() + -- Setup orgmode + require("orgmode").setup { + org_agenda_files = "~/orgfiles/**/*", + org_default_notes_file = "~/orgfiles/refile.org", + mappings = { + global = { + org_capture = "gC", + org_agenda = "gA", + }, + }, + } + end, + }, + { + "chipsenkbeil/org-roam.nvim", + tag = "0.2.0", + dependencies = { + { + "nvim-orgmode/orgmode", + tag = "0.7.0", + }, + }, + config = function() + require("org-roam").setup { + directory = "~/org_roam_files", + -- optional + org_files = { + "~/orgfiles", + -- "~/some/folder/*.org", + -- "~/a/single/org_file.org", + }, + } + end, + }, +}