From 633d294e9748ed83b87338cbdf3f1a20fd91db74 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Fri, 18 Aug 2023 22:50:28 +0200 Subject: [PATCH] configure orgmode --- lua/custom/plugins/norg.lua | 18 ------------------ lua/custom/plugins/orgmode.lua | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 18 deletions(-) delete mode 100644 lua/custom/plugins/norg.lua create mode 100644 lua/custom/plugins/orgmode.lua diff --git a/lua/custom/plugins/norg.lua b/lua/custom/plugins/norg.lua deleted file mode 100644 index 1f66536..0000000 --- a/lua/custom/plugins/norg.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - 'nvim-neorg/neorg', - build = ':Neorg sync-parsers', - opts = { - load = { - ['core.defaults'] = {}, -- Loads default behaviour - ['core.concealer'] = {}, -- Adds pretty icons to your documents - ['core.dirman'] = { -- Manages Neorg workspaces - config = { - workspaces = { - notes = '~/notes', - }, - }, - }, - }, - }, - dependencies = { { 'nvim-lua/plenary.nvim' } }, -} diff --git a/lua/custom/plugins/orgmode.lua b/lua/custom/plugins/orgmode.lua new file mode 100644 index 0000000..be83e29 --- /dev/null +++ b/lua/custom/plugins/orgmode.lua @@ -0,0 +1,21 @@ +return { + 'nvim-orgmode/orgmode', + lazy = false, + ft = { 'org' }, + config = function() + require('orgmode').setup_ts_grammar() + + require('orgmode').setup { + org_agenda_files = { '~/org/**/*' }, + org_default_notes_file = '~/org/refile.org', + org_todo_keywords = { 'TODO(t)', 'BLCK(b)', 'WIP(w)', '|', 'DONE(d)', 'CANC(c)' }, + org_capture_templates = { + t = { description = 'Task', template = '* TODO %?\n %u' }, + f = { + description = 'File Task', + template = '** TODO %?\n %T\n\n %a', + }, + }, + } + end, +}