From db6d89471c2017243168026363b211baaa2a1fff Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 13 May 2022 13:40:55 +0200 Subject: [PATCH] more commands --- lua/setup/my_command_center.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lua/setup/my_command_center.lua b/lua/setup/my_command_center.lua index 27a499c..f86f973 100644 --- a/lua/setup/my_command_center.lua +++ b/lua/setup/my_command_center.lua @@ -125,6 +125,10 @@ command_center.add({ { 'n', '', silent_noremap }, }, }, + { + description = 'Search in open files', + cmd = "lua require('telescope.builtin').live_grep({ prompt_title = 'find string in open buffers...', grep_open_files = true })", + }, { description = 'Open clipboard history', cmd = 'Telescope neoclip', @@ -146,6 +150,13 @@ command_center.add({ { 'n', '', silent_noremap }, }, }, + { + description = 'Find in workspace', + cmd = 'Telescope grep_string', + keybindings = { + { 'n', 'd', silent_noremap }, + }, + }, { description = 'Open lazygit', cmd = 'lua _lazygit_toggle()',