From cbaf74418b97b375329a3d635f79a6f7d3b5cbff Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Wed, 30 Apr 2025 12:55:41 -0400 Subject: [PATCH] Added gitignore creation for c++ --- lua/Polydev/templates.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/Polydev/templates.lua b/lua/Polydev/templates.lua index 9e262f9..301c956 100644 --- a/lua/Polydev/templates.lua +++ b/lua/Polydev/templates.lua @@ -207,6 +207,10 @@ set(CMAKE_C_STANDARD_REQUIRED ON) ] } +]])) + + utils.write_file(full_project_root .. "/.gitignore", string.format([[ +build/ ]])) vim.fn.system(string.format("cd %s/build/ && cmake .. && cmake --build .", full_project_root)) vim.cmd("edit " .. full_project_root .. "/src/main.cpp")