Compare commits
1 Commits
bdbd173a2b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a81aaba57 |
21
init.lua
21
init.lua
@@ -710,6 +710,7 @@ require('lazy').setup({
|
|||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'luasnip' },
|
{ name = 'luasnip' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
|
{ name = 'orgmode' },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
@@ -851,6 +852,26 @@ require('lazy').setup({
|
|||||||
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
|
{ '<leader>gg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'nvim-orgmode/orgmode',
|
||||||
|
event = 'VeryLazy',
|
||||||
|
ft = { 'org' },
|
||||||
|
config = function()
|
||||||
|
--Setup orgmode
|
||||||
|
require('orgmode').setup {
|
||||||
|
org_agenda_files = '~/org/**/*',
|
||||||
|
org_default_notes_file = '~/org/default.org',
|
||||||
|
mappings = {
|
||||||
|
org = {
|
||||||
|
org_toggle_checkbox = '<C-Space>',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
-- Setup org-specific keybindings
|
||||||
|
vim.keymap.set('n', '<leader>oa', '<cmd>lua require("orgmode").action("agenda.prompt")<CR>', { desc = '[O]rg [A]genda' })
|
||||||
|
vim.keymap.set('n', '<leader>oc', '<cmd>lua require("orgmode").action("agenda.prompt")<CR>', { desc = '[O]rg [C]apture' })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||||
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
||||||
|
|||||||
Reference in New Issue
Block a user