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 {
|
||||
'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 = '<Leader>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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user