Skip to content

Commit

Permalink
bug: Ensure filepaths are expanded to be accessible (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
csessh authored Dec 12, 2024
1 parent 6757ee1 commit 2cfff79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/aoc/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ local default_opts = {

M.init = function(args)
M.options = vim.tbl_deep_extend("force", default_opts, args or {})

M.options.session_filepath = vim.fn.expand(M.options.session_filepath)
if M.options.puzzle_input.alternative_filepath then
M.options.alternative_filepath = vim.fn.expand(M.options.alternative_filepath)
end
end

M.debug = function()
Expand Down

0 comments on commit 2cfff79

Please sign in to comment.