add orgmode
This commit is contained in:
parent
3353b41758
commit
939e7ae2da
1 changed files with 41 additions and 0 deletions
41
lua/plugins/orgmode.lua
Normal file
41
lua/plugins/orgmode.lua
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
---@type LazySpec
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-orgmode/orgmode",
|
||||||
|
event = "VeryLazy",
|
||||||
|
config = function()
|
||||||
|
-- Setup orgmode
|
||||||
|
require("orgmode").setup {
|
||||||
|
org_agenda_files = "~/orgfiles/**/*",
|
||||||
|
org_default_notes_file = "~/orgfiles/refile.org",
|
||||||
|
mappings = {
|
||||||
|
global = {
|
||||||
|
org_capture = "gC",
|
||||||
|
org_agenda = "gA",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"chipsenkbeil/org-roam.nvim",
|
||||||
|
tag = "0.2.0",
|
||||||
|
dependencies = {
|
||||||
|
{
|
||||||
|
"nvim-orgmode/orgmode",
|
||||||
|
tag = "0.7.0",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("org-roam").setup {
|
||||||
|
directory = "~/org_roam_files",
|
||||||
|
-- optional
|
||||||
|
org_files = {
|
||||||
|
"~/orgfiles",
|
||||||
|
-- "~/some/folder/*.org",
|
||||||
|
-- "~/a/single/org_file.org",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue