feat: change the files encapsulation

This commit is contained in:
2024-12-12 21:16:28 +01:00
parent 2b38cb2ebe
commit 21ea793241
2 changed files with 2 additions and 9 deletions

View File

@@ -92,7 +92,7 @@ function M.get_file_contents(files)
local data = uv.fs_read(fd, stat.size, 0)
uv.fs_close(fd)
if data then
table.insert(sections, "\n<<<CGPT Current File\n" .. path .. "\n" .. data .. "\n<<<CGPT Current File END\n")
table.insert(sections, "\nFile: `" .. f .. "`\n```\n" .. data .. "\n```\n")
end
else
uv.fs_close(fd)