add neogit and orgmode
This commit is contained in:
parent
8da73b14ea
commit
ceb38d09b0
5 changed files with 51 additions and 2 deletions
30
lua/plugins/orgmode.lua
Normal file
30
lua/plugins/orgmode.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
return {
|
||||
'nvim-orgmode/orgmode',
|
||||
event = 'VeryLazy',
|
||||
ft = { 'org' },
|
||||
config = function()
|
||||
-- Setup orgmode
|
||||
require('orgmode').setup {
|
||||
org_agenda_files = '~/orgfiles/**/*',
|
||||
org_default_notes_file = '~/orgfiles/refile.org',
|
||||
org_capture_templates = {
|
||||
t = { description = 'Task', template = '* TODO %?\n %u' },
|
||||
j = {
|
||||
description = 'Journal',
|
||||
datetree = {
|
||||
tree_type = 'day',
|
||||
},
|
||||
template = '\n**** %?\n%U\n',
|
||||
target = '~/orgfiles/journal.org',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- 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,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue