local M = {} function M.setup(_) local H = require("hego") local cmd = vim.api.nvim_create_user_command cmd("HegoBuild", function() H.build(false) end, {}) cmd("HegoBuildPristine", function() H.build(true) end, {}) cmd("HegoFlash", function() H.flash() end, {}) cmd("HegoFlashErase", function() H.flash("erase") end, {}) cmd("HegoFlashRecover", function() H.flash("recover") end, {}) cmd("HegoDeviceRecover", function() H.device_recover() end, {}) cmd("HegoMenuconfig", function() H.kconfig() end, {}) cmd("HegoMemoryReport", function() H.memory_report() end, {}) cmd("HegoMonitor", function() H.monitor() end, {}) cmd("HegoConfig", function() H.edit_config() end, {}) cmd("HegoBuildConfig", function() H.build_from_config() end, {}) cmd("HegoTerminal", function() H.terminal() end, {}) cmd("HegoToolchain", function() H.toolchain_pick() end, {}) cmd("HegoSDK", function() H.sdk_pick() end, {}) -- Con argumentos: :HegoTerminal v3.4.1 vim.api.nvim_create_user_command("HegoTerminalAt", function(args) require("hego.toolchain").terminal(require("hego").options, args.args) end, { nargs = 1 }) end return M