small orgmode org-roam specific modifications

This commit is contained in:
Thomas Ruoff
2024-08-01 15:37:29 +02:00
parent e75c0077b6
commit c990a9a73d

View File

@@ -1,20 +1,34 @@
return { return {
'nvim-orgmode/orgmode', {
event = 'VeryLazy', 'chipsenkbeil/org-roam.nvim',
ft = { 'org' }, dependencies = {
config = function() 'nvim-orgmode/orgmode',
-- Setup orgmode },
require('orgmode').setup { opts = {
org_agenda_files = '~/org/**/*', directory = '~/org',
org_default_notes_file = '~/org/refile.org', bindings = {
org_todo_keywords = { 'TODO', 'WAITING', '|', 'DONE', 'DELEGATED' }, prefix = '<Leader>o',
} },
templates = {
-- NOTE: If you are using nvim-treesitter with `ensure_installed = "all"` option n = {
-- add `org` to ignore_install description = 'Note',
require('nvim-treesitter.configs').setup { template = '%?',
ensure_installed = 'all', target = '%<%Y%m%d%H%M%S>-%[slug].org',
ignore_install = { 'org' }, },
} },
end, },
},
{
'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,
},
} }