From 6c8b1c87d4f1a9cafc1e3f60481b041300b443d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20L=C3=BCdecke?= Date: Fri, 23 May 2025 22:32:23 +0200 Subject: [PATCH] Org Roam added, orgmode now with C-M-Up / -Down to move trees --- lua/plugins.lua | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 17ffb44..0d51c14 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -85,8 +85,16 @@ require("lazy").setup({ config = function() -- Setup orgmode require('orgmode').setup({ - org_agenda_files = '~/orgfiles/**/*', - org_default_notes_file = '~/orgfiles/refile.org', + mappings = { + org = { + org_move_subtree_up = { 'oK', '' }, + org_move_subtree_down = { 'oJ', '' }, + } + }, + -- org_agenda_files = '~/orgfiles/**/*', + -- org_default_notes_file = '~/orgfiles/refile.org', + org_agenda_files = '~/Documents/Eigene (Briefe etc.)/org/*.org', + org_default_notes_file = '~/Documents/Eigene (Briefe etc.)/org/refile.org', org_todo_keywords = { 'TODO(t)', 'STARTED(s)', 'PLANNED(p)', '|', 'DONE(d)', 'UNPLANNED(u)' }, org_custom_exports = { f = { @@ -119,6 +127,25 @@ require("lazy").setup({ end, }, + -- org-roam - lets try it out (2025-05-20) + { + "chipsenkbeil/org-roam.nvim", + config = function() + require("org-roam").setup({ + directory = "~/Documents/Eigene (Briefe etc.)/org/roam", + -- optional + -- org_files = { + -- "~/another_org_dir", + -- "~/some/folder/*.org", + -- "~/a/single/org_file.org", + -- } + bindings = { + prefix = "r" + } + }) + end + }, + -- comfortable table editing, esp. used in orgmode { 'dhruvasagar/vim-table-mode' },