kickstart.nvim/lua/plugins/orgmode.lua

31 lines
838 B
Lua

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