From 5e37bd24d987cc9dd21c0e8479d7cf5aba4096c0 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 22 Oct 2023 16:58:10 +0200 Subject: [PATCH] Remove custom grep function --- after/plugin/telescope.lua | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index 5ff462e..4ee46ac 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,16 +1,5 @@ local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin.find_files, {}) -vim.keymap.set('n', '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', 'fs', builtin.live_grep); vim.keymap.set('v', 'fs', builtin.grep_string);