add neogit and orgmode

This commit is contained in:
Marc Talcott 2024-06-10 20:45:36 -04:00
parent 8da73b14ea
commit ceb38d09b0
5 changed files with 51 additions and 2 deletions

30
lua/plugins/orgmode.lua Normal file
View file

@ -0,0 +1,30 @@
return {
'nvim-orgmode/orgmode',
event = 'VeryLazy',
ft = { 'org' },
config = function()
-- Setup orgmode
require('orgmode').setup {
org_agenda_files = '~/orgfiles/**/*',
org_default_notes_file = '~/orgfiles/refile.org',
org_capture_templates = {
t = { description = 'Task', template = '* TODO %?\n %u' },
j = {
description = 'Journal',
datetree = {
tree_type = 'day',
},
template = '\n**** %?\n%U\n',
target = '~/orgfiles/journal.org',
},
},
}
-- NOTE: If you are using nvim-treesitter with ~ensure_installed = "all"~ option
-- add ~org~ to ignore_install
-- require('nvim-treesitter.configs').setup({
-- ensure_installed = 'all',
-- ignore_install = { 'org' },
-- })
end,
}