From d609082e0992e4a47e8628897bdcd0762ae48e18 Mon Sep 17 00:00:00 2001 From: Warwick New Date: Tue, 20 Aug 2024 10:55:58 +0100 Subject: [PATCH] Fixed template issue with daily note. --- lua/core/plugin_config/obsidian.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/core/plugin_config/obsidian.lua b/lua/core/plugin_config/obsidian.lua index 8c248e0..e841deb 100644 --- a/lua/core/plugin_config/obsidian.lua +++ b/lua/core/plugin_config/obsidian.lua @@ -9,17 +9,17 @@ require("obsidian").setup({ -- Set to false to disable completion. nvim_cmp = true, }, - daily_notes = { - -- Optional, if you keep daily notes in a separate directory. - folder = "diary", - -- Optional, if you want to automatically insert a template from your template directory like 'daily.md' - template = "Templates/daily_note" - }, templates = { subdir = "Templates", -- A map for custom variables, the key should be the variable and the value a function substitutions = {}, }, + daily_notes = { + -- Optional, if you keep daily notes in a separate directory. + folder = "diary", + -- Optional, if you want to automatically insert a template from your template directory like 'daily.md' + template = "daily_note.md" + }, note_id_func = function(title) local suffix = "" if title ~= nil then