Update python.lua

This commit is contained in:
DarthMooMancer
2025-03-14 12:58:03 -04:00
parent 6a07707be7
commit 686defbf66
+4 -5
View File
@@ -116,10 +116,9 @@ function M.create_project()
end end
local project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name local project_root = vim.fn.expand(M.config.project_root) .. "/" .. project_name
-- for _, path in ipairs({ "/src", "/build", "/include" }) do for _, path in ipairs({ "/tests", "/include" }) do
-- vim.fn.mkdir(project_root .. path, "p") vim.fn.mkdir(project_root .. path, "p")
-- end end
vim.fn.mkdir(project_root .. "/tests", "p")
write_file(project_root .. "/main.py", [[ write_file(project_root .. "/main.py", [[
def main(): def main():
@@ -168,7 +167,7 @@ function M.create_new_file()
return print("Error: Project root not found.") return print("Error: Project root not found.")
end end
local file_path = root_dir .. "/" .. file_name local file_path = root_dir .. "/include/" .. file_name
write_file(file_path, "") write_file(file_path, "")
end) end)
end end