Skip to content

Commit

Permalink
Finish fixing scope issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTaoOfSu committed May 24, 2024
1 parent e65d0c0 commit 210bc5c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/telekasten/utils/files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -548,18 +548,18 @@ function M.Pinfo:resolve_link(title, opts)
:gsub("^/", "")

-- now suggest a template based on opts
self.template = M.note_type_templates.normal
self.template = opts.note_type_templates.normal
if opts.template_handling == "prefer_new_note" then
self.template = M.note_type_templates.normal
self.template = opts.note_type_templates.normal
elseif opts.template_handling == "always_ask" then
self.template = nil
elseif opts.template_handling == "smart" then
if self.is_daily then
self.template = M.note_type_templates.daily
self.template = opts.note_type_templates.daily
elseif self.is_weekly then
self.template = M.note_type_templates.weekly
self.template = opts.note_type_templates.weekly
else
self.template = M.note_type_templates.normal
self.template = opts.note_type_templates.normal
end
end

Expand Down

0 comments on commit 210bc5c

Please sign in to comment.