local M = {} M.general = { n = { [""] = {" TmuxNavigateLeft", "window left"}, [""] = {" TmuxNavigateRight", "window right"}, [""] = {" TmuxNavigateDown", "window down"}, [""] = {" TmuxNavigateUp", "window up"}, } } M.dap = { plugin = true, n = { ["db"] = { " DapToggleBreakpoint ", "Add breakpoint at line" }, [""] = { " DapContinue ", "Start Debugging" }, [""] = { " DapTerminate ", "Stop Debugging" }, [""] = { " DapStepOver ", "Step Over" }, [""] = { " DapStepInto ", "Step Into" }, [""] = { " DapStepOut ", "Stop Out" }, ["dus"] = { function () local widgets = require('dap.ui.widgets'); local sidebar = widgets.sidebar(widgets.scopes); sidebar.open(); end, "Open debugging sidebar" } } } M.dap_go = { plugin = true, n = { ["dgt"] = { function() require('dap-go').debug_test() end, "Debug go test" }, ["dgl"] = { function() require('dap-go').debug_last() end, "Debug last go test" } } } M.gopher = { plugin = true, n = { ["gsj"] = { " GoTagAdd json ", "Add json struct tags" }, ["gse"] = { " GoTagAdd env ", "Add env struct tags" }, ["gsy"] = { " GoTagAdd yaml ", "Add yaml struct tags" } } } M.crates = { n = { ["rcu"] = { function () require('crates').upgrade_all_crates() end, "update crates" } } } return M