From 0b39cde5965271059861e4ef6761690be97988ac Mon Sep 17 00:00:00 2001 From: don philipe Date: Wed, 17 Jun 2026 10:16:56 +0200 Subject: [PATCH] Keymap grepping string under cursor to telescope --- .config/nvim/lua/config/remap.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/nvim/lua/config/remap.lua b/.config/nvim/lua/config/remap.lua index f1fb84c..9e9d3bc 100644 --- a/.config/nvim/lua/config/remap.lua +++ b/.config/nvim/lua/config/remap.lua @@ -23,3 +23,8 @@ local function run_and_paste() vim.api.nvim_buf_set_text(0, row - 1, col, row - 1, col, { out }) end vim.keymap.set("n", "", run_and_paste) + +-- grep string under cursor in telescope +vim.keymap.set('n', 'fw', function() + require('telescope.builtin').grep_string() +end, { desc = 'Find word under cursor' })