From 2b440c2935b54c72c9f72496a3f0bafae78ce329 Mon Sep 17 00:00:00 2001 From: dmm <107283522+DarthMooMancer@users.noreply.github.com> Date: Sun, 7 Sep 2025 15:12:33 +0000 Subject: [PATCH 1/3] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From 5bf74a6639bcbf82c136b1a196096fff5018c6d7 Mon Sep 17 00:00:00 2001 From: Andrew Haynes <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:47:27 -0400 Subject: [PATCH 2/3] Update templates.lua --- lua/Polydev/templates.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/Polydev/templates.lua b/lua/Polydev/templates.lua index 922e72f..44873f0 100644 --- a/lua/Polydev/templates.lua +++ b/lua/Polydev/templates.lua @@ -140,8 +140,10 @@ int main() { utils.write_file({ full_project_root, "CMakeLists.txt" }, string.format([[ cmake_minimum_required(VERSION 3.16) project(%s) -set(CMAKE_C_STANDARD 23) -set(CMAKE_C_STANDARD_REQUIRED ON) +set(CMAKE_CXX_STANDARD 23) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + include_directories(include) set(SOURCES From d1cb867cf88f1688b57e847a7d189d2b24b4db64 Mon Sep 17 00:00:00 2001 From: DarthMooMancer <107283522+DarthMooMancer@users.noreply.github.com> Date: Fri, 3 Oct 2025 09:23:57 -0400 Subject: [PATCH 3/3] c++ fix --- lua/Polydev/templates.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua/Polydev/templates.lua b/lua/Polydev/templates.lua index 44873f0..208240b 100644 --- a/lua/Polydev/templates.lua +++ b/lua/Polydev/templates.lua @@ -133,16 +133,17 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) #include int main() { - std::cout << "Hello World" << std::endl; + std::cout << "Hello World\n"; return 0; } ]]) utils.write_file({ full_project_root, "CMakeLists.txt" }, string.format([[ cmake_minimum_required(VERSION 3.16) -project(%s) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +project(%s) include_directories(include) @@ -155,8 +156,6 @@ add_executable(%s ${SOURCES}) # find_package(Curses REQUIRED) # include_directories(${CURSES_INCLUDE_DIR}) # target_link_libraries(%s ${CURSES_LIBRARIES}) - -set(CMAKE_EXPORT_COMPILE_COMMANDS ON) ]], project_name, project_name, project_name)) local gitignore = { "build/", ".cache/" }