From 93945a96daad5db8f91b07d1aef65b3ec6f758fb Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Fri, 26 Apr 2024 02:09:30 +0300 Subject: feat: autocommands to regenerate and reset project One autocommand generates project after saving CMakeLists.txt, and other sets up all project after saving variants --- lua/cmake/config.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua/cmake/config.lua') diff --git a/lua/cmake/config.lua b/lua/cmake/config.lua index 5a4cb75..49dbc50 100644 --- a/lua/cmake/config.lua +++ b/lua/cmake/config.lua @@ -1,6 +1,8 @@ local default_config = { cmake = { cmake_path = "cmake", + ctest_path = "ctest", + cpack_path = "cpack", environment = {}, configure_environment = {}, build_directory = "${workspaceFolder}/build-${buildType}", @@ -21,9 +23,10 @@ local default_config = { }, }, parallel_jobs = 0, - save_before_build = true, source_directory = "${workspaceFolder}", }, + save_before_build = true, + generate_after_save = true, terminal = { direction = "vertical", display_name = "CMake", -- cgit v1.2.3