configure orgmode

This commit is contained in:
Thomas Ruoff
2023-08-18 22:50:28 +02:00
parent 62fc12b331
commit 633d294e97
2 changed files with 21 additions and 18 deletions

View File

@@ -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' } },
}

View File

@@ -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,
}