more commands

This commit is contained in:
Oliver Hartmann 2022-05-13 13:40:55 +02:00
parent 892ac617ee
commit db6d89471c

View File

@ -125,6 +125,10 @@ command_center.add({
{ 'n', '<c-s-f>', silent_noremap },
},
},
{
description = 'Search in open files',
cmd = "<CMD>lua require('telescope.builtin').live_grep({ prompt_title = 'find string in open buffers...', grep_open_files = true })<CR>",
},
{
description = 'Open clipboard history',
cmd = '<CMD>Telescope neoclip<CR>',
@ -146,6 +150,13 @@ command_center.add({
{ 'n', '<c-f>', silent_noremap },
},
},
{
description = 'Find in workspace',
cmd = '<CMD>Telescope grep_string<CR>',
keybindings = {
{ 'n', '<leader>d', silent_noremap },
},
},
{
description = 'Open lazygit',
cmd = '<CMD>lua _lazygit_toggle()<CR>',