aboutsummaryrefslogtreecommitdiff
path: root/lua/cmake/commands.lua
diff options
context:
space:
mode:
authorDaniil Rozanov <daniilrozzanov@gmail.com>2024-04-26 00:50:04 +0300
committerDaniil Rozanov <daniilrozzanov@gmail.com>2024-04-26 00:50:04 +0300
commit8d05fcaaeb1442c709f148ff934d92900743f051 (patch)
treea766cc97461968da16baba157acc636388924983 /lua/cmake/commands.lua
parent2470bad1151fc49941c3821f187c6c232c0cec78 (diff)
feat: command to edit variants
If there is no cmake-variants.yaml file in current directory, command creates it with default variants
Diffstat (limited to 'lua/cmake/commands.lua')
-rw-r--r--lua/cmake/commands.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/cmake/commands.lua b/lua/cmake/commands.lua
index f754b1c..c2f6e75 100644
--- a/lua/cmake/commands.lua
+++ b/lua/cmake/commands.lua
@@ -29,7 +29,11 @@ M.register_commands = function()
cmd("CMakeToggle", function()
require("cmake.actions").toggle()
- end, { desc = "Toggle CMake terminal" })
+ end, { desc = "Toggle terminal with cmake command" })
+
+ cmd("CMakeEditVariants", function()
+ require("cmake.actions").edit_variants()
+ end, { desc = "Edit variants" })
end
return M