local function map(mode, lhs, rhs, opts) local options = { noremap=true, silent=true } if opts then options = vim.tbl_extend('force', options, opts) end vim.api.nvim_set_keymap(mode, lhs, rhs, options) end map("n", "", ":NvimTreeToggle") map("n", "", ":NvimTreeFindFileToggle") map("n", "", ":Buffers") map("n", "", ":TagbarToggle") map("n", "e", ":CocList diagnostics") map("n", "", ":Telescope find_files") map("n", "s", ":Telescope live_grep glob_pattern=*.{ts,html,c,h,go,json,py,sh,lua,vim,rs,txt}") map("n", "sc", ":noh") map("n", "gs", ":call CocAction('jumpDefinition', 'split')") map("n", "1", "1gt") map("n", "2", "2gt") map("n", "3", "3gt") map("n", "4", "4gt") map("n", "5", "5gt") map("n", "6", "6gt") map("n", "7", "7gt") map("n", "8", "8gt") map("n", "9", "9gt") map("n", "0", ":tablast") map("n", "", ":call vimspector#ToggleBreakpoint( input( \"Enter condition: \" ) )") map("n", "t", ":bo 15split +term") map("t", "", "")