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);