require('telescope').load_extension('command_center') local command_center = require('command_center') local noremap = { noremap = true } local silent_noremap = { noremap = true, silent = true } command_center.add({ { description = 'Open command_center', cmd = 'Telescope command_center', keybindings = { { 'n', 'p', noremap }, { 'v', 'p', noremap }, }, }, { description = 'Open a new tab', cmd = 'tabnew .', keybindings = { { 'n', 'F2', silent_noremap }, }, }, { description = 'Open a new vertical split', cmd = 'vsplit .', keybindings = { { 'n', '', silent_noremap }, }, }, { description = 'Open a new horizontal split', cmd = 'split .', keybindings = { { 'n', '', silent_noremap }, }, }, { description = 'CMake build all', cmd = 'CMake build_all', }, { description = 'CMake build selected target', cmd = 'CMake build', keybindings = { { 'n', 'F5', silent_noremap }, }, }, { description = 'CMake configure', cmd = 'CMake configure', }, { description = 'CMake select target', cmd = 'CMake select_target', }, { description = 'CMake clear cache', cmd = 'CMake clear_cache', }, { description = 'List snippets', cmd = 'LuaSnipListAvailable', }, { description = 'Add comment', cmd = 'Neogen', keybindings = { { 'n', 'n', silent_noremap }, }, }, { description = 'Select project', cmd = 'Telescope projects', keybindings = { { 'n', 'p', silent_noremap }, }, }, { description = 'Find file', cmd = 'lua require("telescope.builtin").find_files({no_ignore=true})', keybindings = { { 'n', 'f', silent_noremap }, }, }, { description = 'Find file (with gitignore)', cmd = 'lua require("telescope.builtin").find_files({no_ignore=false})', keybindings = { { 'n', '', silent_noremap }, }, }, { description = 'Find git files', cmd = 'Telescope git_files', keybindings = { { 'n', 'g', silent_noremap }, }, }, { description = 'Find old files', cmd = 'Telescope oldfiles', keybindings = { { 'n', 'o', silent_noremap }, }, }, { description = 'Open command history', cmd = 'Telescope command_history', keybindings = { { 'n', 'h', silent_noremap }, }, }, { description = 'Select buffer', cmd = 'Telescope buffers', keybindings = { { 'n', 'b', silent_noremap }, }, }, { description = 'Quickfix list with telescope', cmd = 'Telescope quickfix', keybindings = { { 'n', 'q', silent_noremap }, }, }, { description = 'Search in project', cmd = 'Telescope live_grep', keybindings = { { 'n', 'l', silent_noremap }, { 'n', '', silent_noremap }, }, }, { description = 'Open clipboard history', cmd = 'Telescope neoclip', keybindings = { { 'n', '', silent_noremap }, }, }, { description = 'Open jumplist', cmd = 'Telescope jumplist', keybindings = { { 'n', 'j', silent_noremap }, }, }, { description = 'Find in buffer', cmd = 'Telescope current_buffer_fuzzy_find', keybindings = { { 'n', '', silent_noremap }, }, }, { description = 'Open lazygit', cmd = 'lua _lazygit_toggle()', keybindings = { { 'n', 'g', silent_noremap }, }, }, { description = 'Word under cursor into register a', cmd = '"ayiw', keybindings = { { 'n', 'a', silent_noremap }, }, }, })