From 3661d39554be06bef14b8aa3a02bfe37f072f14e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 1 Nov 2023 08:57:16 -0500 Subject: [PATCH] feat(nvim): add org templates for tasks & journal --- dots/.config/nvim/lua/plugins/configs/org-mode.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dots/.config/nvim/lua/plugins/configs/org-mode.lua b/dots/.config/nvim/lua/plugins/configs/org-mode.lua index 0b7bf7a2..0804bc45 100644 --- a/dots/.config/nvim/lua/plugins/configs/org-mode.lua +++ b/dots/.config/nvim/lua/plugins/configs/org-mode.lua @@ -31,6 +31,17 @@ return { org_startup_folded = "inherit", calendar_week_start_day = 0, org_agenda_start_on_weekday = 0, + org_capture_templates = { + t = { + description = "Todo", + template = "* TODO %?\n %u", + }, + j = { + description = "Journal", + template = "\n** %U :journal:\n\n%?", + target = "~/Notes/journal/%<%Y-%m-%d>.org" + }, + }, emacs_config = { config_path = "$HOME/.config/emacs/init.el" }