diff --git a/lua/neorg/modules/core/tangle/module.lua b/lua/neorg/modules/core/tangle/module.lua index 8552270e9..388004e09 100644 --- a/lua/neorg/modules/core/tangle/module.lua +++ b/lua/neorg/modules/core/tangle/module.lua @@ -498,6 +498,7 @@ module.on_event = function(event) local tangled_count = 0 for file, content in pairs(tangles) do + file = dirman_utils.expand_pathlib(file):tostring() vim.loop.fs_open(file, "w", 438, function(err, fd) assert(not err and fd, lib.lazy_string_concat("Failed to open file '", file, "' for tangling: ", err))