From 6808767d0f8bb36cee3f65358af47fddb671df7b Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Fri, 10 Dec 2021 16:38:33 +0100 Subject: Some updates --- lua/alpha/telescope.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lua/alpha/telescope.lua') diff --git a/lua/alpha/telescope.lua b/lua/alpha/telescope.lua index daa4cd8..0033e7a 100644 --- a/lua/alpha/telescope.lua +++ b/lua/alpha/telescope.lua @@ -56,4 +56,13 @@ end M.laravel_artisan = require('alpha.telescope_laravel').artisan M.project_find = require('alpha.telescope_projectionist').find +M.grep_string = function () + vim.ui.input("Grep for > ", function (input) + if input == nil then + return + end + require('telescope.builtin').grep_string({ search = input}) + end) +end + return M -- cgit v1.2.3