Skip to content

Commit

Permalink
delay evaluation of TITLE_INPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
pysan3 committed Apr 17, 2023
1 parent 23360e0 commit 55f5a76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/neorg/modules/external/templates/default_snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ end

M.default_keywords = {
TITLE = f(M.file_title),
TITLE_INPUT = i(1, M.file_title()),
TITLE_INPUT = d(1, function()
return sn(1, { i(1, M.file_title()) })
end),
TODAY = f(M.current_date_f(0)),
TOMORROW = f(M.current_date_f(1)),
YESTERDAY = f(M.current_date_f(-1)),
Expand Down

0 comments on commit 55f5a76

Please sign in to comment.