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