From e29723ec26d94758df0567c8f27f9011fa43a677 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Tue, 25 Oct 2022 12:26:14 +0200 Subject: [PATCH] [nvim] feat: add a Telescope mapping to grep under cursor --- .config/nvim/lua/maps.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/nvim/lua/maps.lua b/.config/nvim/lua/maps.lua index 545e9a7..e675aee 100644 --- a/.config/nvim/lua/maps.lua +++ b/.config/nvim/lua/maps.lua @@ -22,6 +22,8 @@ vim.keymap.set("n", "tf", function() require("telescope.builtin").find_files() end) vim.keymap.set("n", "tb", function() require("telescope.builtin").buffers() end) +vim.keymap.set("n", "tg", + function() require("telescope.builtin").grep_string() end) vim.keymap.set("n", "tl", function() require("telescope.builtin").live_grep() end)