return { 'nvim-orgmode/orgmode', dependencies = { { 'nvim-treesitter/nvim-treesitter', lazy = true }, { 'akinsho/org-bullets.nvim', opts = {} }, }, event = 'VeryLazy', config = function() -- Load treesitter grammar for org require('orgmode').setup_ts_grammar() -- Setup treesitter require('nvim-treesitter.configs').setup { highlight = { enable = true, additional_vim_regex_highlighting = { 'org' }, }, ensure_installed = { 'org' }, } -- Setup orgmode 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, }