diff options
Diffstat (limited to 'lua/mo/org.lua')
| -rw-r--r-- | lua/mo/org.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/mo/org.lua b/lua/mo/org.lua new file mode 100644 index 0000000..2218112 --- /dev/null +++ b/lua/mo/org.lua @@ -0,0 +1,21 @@ +--- @diagnostic disable: missing-fields + +if not package.loaded["fzf-lua"] then + vim.cmd([[packadd fzf-lua]]) +end + +require("orgmode").setup({ + org_agenda_files = "~/org/**/*", + org_default_notes_file = "~/org/refile.org", + + ui = { + input = { use_vim_ui = true }, + menu = { + handler = function(data) + require("mo.org-agenda"):new():open(data) + end + } + }, +} --[[@as OrgConfigOpts]]) + +vim.lsp.enable({ "org" }) |
