---@type MappingsTable local M = {} M.general = { n = { [";"] = { ":", "enter command mode", opts = { nowait = true } }, }, v = { [">"] = { ">gv", "indent"}, }, } M.dap = { plugin = true, n = { ["db"] = {" DapToggleBreakpoint ","Toggle Breakpoint"}, ["dus"] = { function () local widgets = require('dap.ui.widgets'); local sidebar = widgets.sidebar(widgets.scopes); sidebar.open(); end, "Open debugging sidebar" } } } M.dap_python = { plugin = true, n = { ["dpr"] = { function() require('dap-python').test_method() end } } } M.crates = { plugin = true, n = { ["rcu"] = { function () require('crates').upgrade_all_crates() end, "update crates" } } } M.hop = { plugin = true, n = { [''] = {function () require('hop').hint_words({direction = require('hop.hint').HintDirection.AFTER_CURSOR, current_line_only = true}) end, }, [''] = {function () require('hop').hint_words({direction = require('hop.hint').HintDirection.BEFORE_CURSOR, current_line_only = true}) end }, [''] = {function () require('hop').hint_lines_skip_whitespace({direction = require('hop.hint').HintDirection.AFTER_CURSOR, current_line_only = false}) end}, [''] = {function () require('hop').hint_lines_skip_whitespace({direction = require('hop.hint').HintDirection.BEFORE_CURSOR, current_line_only = false}) end}, -- rebind f/F ['f'] = {function() require('hop').hint_char1({ direction = require('hop.hint').HintDirection.AFTER_CURSOR, current_line_only = true }) end, opts={remap=true}}, ['F'] = {function() require('hop').hint_char1({ direction = require('hop.hint').HintDirection.BEFORE_CURSOR, current_line_only = true }) end, opts={remap=true}}, -- override t/T for multi window search ['t'] = {function() require('hop').hint_words({ multi_windows=true}) end, "Hop across windows", opts={remap=true}}, ['T']= {function() require('hop').hint_char2({ multi_windows=true}) end, "Hop to chars across windows", opts={remap=true}} } } return M