Remove custom grep function

This commit is contained in:
Marco 2023-10-22 16:58:10 +02:00
parent 3472aa110a
commit 5e37bd24d9

View File

@ -1,16 +1,5 @@
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fs', function()
local searchstring
vim.ui.input({ prompt = 'Grep: ' }, function(input)
searchstring = input
end);
if (searchstring == nil or searchstring == '') then
return
end
builtin.grep_string({ search = searchstring });
end)
vim.keymap.set('n', '<leader>fs', builtin.live_grep);
vim.keymap.set('v', '<leader>fs', builtin.grep_string);