mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 14:37:15 +01:00
small orgmode org-roam specific modifications
This commit is contained in:
@@ -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,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user