local opts = { noremap = true, silent = true } ---Make string like ':cmd' ---@param cmd string ---@return string local function auto(cmd) return string.format(':%s', cmd) end ---Make string like 'cmd' ---@param cmd string ---@return string local function ld(cmd) return string.format('%s', cmd) end return { n = { { ld('ev'), auto('vsplit $MYVIMRC'), opts }, { ld('sv'), auto('source $MYVIMRC'), opts }, { ld('n'), auto('Telescope find_files'), opts }, { ld('h'), auto('Telescope help_tags'), opts }, { ld('/'), auto('Telescope live_grep'), opts }, { ld('t'), auto('Trouble diagnostics'), opts }, { ld('ds'), ':GdbStart rust-gdb -q target/debug/', opts }, --{ ld('?'), function() require("which-key").show({ global = false }) end, opts }, }, i = { { 'jk', '', opts }, }, }