From c07344c3b4da397948a89cfd1b68bc91e38e84c2 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 3 May 2022 19:25:32 +0200 Subject: [PATCH] fix: commands in command center --- configs/nvim/lua/configs/command-center.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/configs/nvim/lua/configs/command-center.lua b/configs/nvim/lua/configs/command-center.lua index c151e1c..b627073 100644 --- a/configs/nvim/lua/configs/command-center.lua +++ b/configs/nvim/lua/configs/command-center.lua @@ -4,31 +4,32 @@ local noremap = { noremap = true } command_center.add({ { description = "Search inside current buffer", - cmd = "Telescope current_buffer_fuzzy_find", + cmd = "Telescope current_buffer_fuzzy_find", keybindings = { "n", "fl", noremap }, }, { -- If no descirption is specified, command is used to replace descirption by default -- You can change this behavior in settigns - cmd = "Telescope find_files", + cmd = "Telescope find_files", }, { -- If no keybindings specified, no keybindings will be displayed or registered description = "Find hidden files", - cmd = "Telescope find_files hidden=true", + cmd = "Telescope find_files hidden=true", }, { -- You can specify multiple keybindings for the same command ... description = "Show document symbols", - cmd = "Telescope lsp_document_symbols", + cmd = "Telescope lsp_document_symbols", }, { description = "Show function signaure (hover)", - cmd = "lua vim.lsp.buf.hover()", + cmd = "lua vim.lsp.buf.hover()", }, { description = "(TS) Organize Imports", - cmd = "OrganizeImports" + cmd = "OrganizeImports" }, { description = "ZenMode", - cmd = "ZenMode" + cmd = "ZenMode", + keybindings = { "n", "z", noremap } } })