From ffb0ea3089324fbf99aaf95348be6e0a4b4871b1 Mon Sep 17 00:00:00 2001 From: Thang Do Date: Thu, 12 Dec 2024 15:59:39 +1030 Subject: [PATCH] bug: Ensure filepaths are expanded to be accessible --- lua/aoc/config.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/aoc/config.lua b/lua/aoc/config.lua index c613fe9..6f48d7e 100644 --- a/lua/aoc/config.lua +++ b/lua/aoc/config.lua @@ -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()