diff options
author | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-04-26 00:50:04 +0300 |
---|---|---|
committer | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-04-26 00:50:04 +0300 |
commit | 8d05fcaaeb1442c709f148ff934d92900743f051 (patch) | |
tree | a766cc97461968da16baba157acc636388924983 /lua/cmake/commands.lua | |
parent | 2470bad1151fc49941c3821f187c6c232c0cec78 (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.lua | 6 |
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 |