major changes to try and fix a bunch of random bugs
This commit is contained in:
@@ -26,7 +26,7 @@ end
|
||||
---@param content string
|
||||
function M.write_file(path_segments, content)
|
||||
local path = table.concat(path_segments, "/")
|
||||
local file = assert(io.open(path, "w"), "Fucking dumbass code: Error creating file: " .. path)
|
||||
local file = assert(io.open(path, "w"), "Error creating file: " .. path)
|
||||
file:write(content)
|
||||
file:close()
|
||||
vim.cmd("edit " .. path)
|
||||
|
||||
Reference in New Issue
Block a user