mirror of
https://github.com/tomru/nvim.git
synced 2026-03-03 22:47:18 +01:00
45 lines
1.1 KiB
Lua
45 lines
1.1 KiB
Lua
return {
|
|
{
|
|
'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(t)', 'WAIT', '|', 'DONE', 'DELEGATED(e)' },
|
|
}
|
|
|
|
vim.api.nvim_create_autocmd({ 'BufNewFile', 'BufRead' }, {
|
|
group = vim.api.nvim_create_augroup('orgmode', { clear = true }),
|
|
pattern = '*.org',
|
|
callback = function()
|
|
vim.opt_local.conceallevel = 2
|
|
vim.opt_local.wrap = false
|
|
end,
|
|
})
|
|
end,
|
|
},
|
|
{ 'akinsho/org-bullets.nvim', config = true },
|
|
}
|