From 27f193a1bb22ca5b5393d353c9270881498d04df Mon Sep 17 00:00:00 2001 From: Ben Lubas Date: Mon, 23 Dec 2024 11:47:23 -0500 Subject: [PATCH] fix: expand tangle paths --- lua/neorg/modules/core/tangle/module.lua | 1 + 1 file changed, 1 insertion(+) 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))