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' })