From 8d250f7ed7cdbfb3922128ae7808790f0140e77b Mon Sep 17 00:00:00 2001 From: Daniil Rozanov Date: Fri, 3 May 2024 23:42:30 +0300 Subject: fix: random bug --- lua/cmake/commands.lua | 66 -------------------------------------------------- 1 file changed, 66 deletions(-) diff --git a/lua/cmake/commands.lua b/lua/cmake/commands.lua index 72fe4b9..03b20a3 100644 --- a/lua/cmake/commands.lua +++ b/lua/cmake/commands.lua @@ -8,72 +8,6 @@ local cmd = vim.api.nvim_create_user_command local prefix = "CMake" --- local _commands = { --- generate = { --- options = { --- fresh = {}, --- }, --- action = actions.generate, --- }, --- build = { --- options = { --- target = { --- type = "table", --- subtype = "string", --- delimiter = ",", --- source = function() --- return vim.iter(project.current_targets()) --- :map(function(target) --- return target.name --- end) --- :totable() --- end, --- }, --- clean = {}, --- j = { type = "number" }, --- }, --- action = actions.build, --- }, --- select = { --- commands = { --- generate = { --- action = actions.generate_select, --- }, --- build = { --- action = actions.build_select, --- }, --- run = { --- action = actions.run_target_select, --- }, --- }, --- }, --- explain = { --- commands = { --- generate = { --- action = actions.generate_select, --- }, --- build = { --- action = actions.build_select, --- }, --- }, --- }, --- run = { --- options = {}, -- any options are possible. passed to action as a single string --- action = actions.run_target, --- }, --- edit = { --- commands = { --- variants = { --- action = actions.edit_variants, --- }, --- -- settings = {}, --- }, --- }, --- toggle = { --- action = actions.toggle, --- }, --- } - local commands = { ["Generate"] = { command = actions.generate, -- cgit v1.2.3