diff --git a/lua/plugins/orgmode.lua b/lua/plugins/orgmode.lua index 995bce2..4883d0e 100644 --- a/lua/plugins/orgmode.lua +++ b/lua/plugins/orgmode.lua @@ -1,20 +1,34 @@ return { - 'nvim-orgmode/orgmode', - event = 'VeryLazy', - ft = { 'org' }, - config = function() - -- Setup orgmode - require('orgmode').setup { - org_agenda_files = '~/org/**/*', - org_default_notes_file = '~/org/refile.org', - org_todo_keywords = { 'TODO', 'WAITING', '|', 'DONE', 'DELEGATED' }, - } - - -- 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, + { + 'chipsenkbeil/org-roam.nvim', + dependencies = { + 'nvim-orgmode/orgmode', + }, + opts = { + directory = '~/org', + bindings = { + prefix = 'o', + }, + templates = { + n = { + description = 'Note', + template = '%?', + target = '%<%Y%m%d%H%M%S>-%[slug].org', + }, + }, + }, + }, + { + 'nvim-orgmode/orgmode', + event = 'VeryLazy', + ft = { 'org' }, + config = function() + -- Setup orgmode + require('orgmode').setup { + org_agenda_files = '~/org/**/*', + org_default_notes_file = '~/org/refile.org', + org_todo_keywords = { 'TODO', 'WAITING', '|', 'DONE', 'DELEGATED' }, + } + end, + }, }