diff --git a/lua/core/plugin_config/org.lua b/lua/core/plugin_config/org.lua index 9f43d74..9ae46b1 100644 --- a/lua/core/plugin_config/org.lua +++ b/lua/core/plugin_config/org.lua @@ -17,6 +17,7 @@ require('orgmode').setup({ org_todo_keywords = { 'TODO(t)', 'NEXT(n)', '|', 'HOLD(h)', 'DONE(d)' } }) + require('cmp').setup({ sources = { { name = 'orgmode' } @@ -32,4 +33,26 @@ require("org-roam").setup({ -- "~/some/folder/*.org", -- "~/a/single/org_file.org", --} + templates = { + d = { + description = "default", + template = "%?", + target = "%<%Y%m%d%H%M%S>-%[slug].org", + }, + f = { + description = "fleeting", + template = "#+filetags: fleeting\n\n%?", + target = "%<%Y%m%d%H%M%S>-%[slug].org", + }, + l = { + description = "literature", + template = "#+filetags: literature\n\n * %?\n * Description\n\n * Notes\n - pg 1: ", + target = "%<%Y%m%d%H%M%S>-%[slug].org", + }, + m = { + description = "main", + template = "%?", + target = "%<%Y%m%d%H%M%S>-%[slug].org", + }, + }, })