Skip to content

Commit

Permalink
fix: search pattern under visual selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamir committed Jan 7, 2025
1 parent c7ed79d commit 3d73f02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/keymap/tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ local plug_map = {
:with_noremap()
:with_silent()
:with_desc("tool: Find patterns"),
["v|<leader>fs"] = map_cu("Telescope grep_string")
["v|<leader>fs"] = map_callback(function()
require("telescope-live-grep-args.shortcuts").grep_visual_selection()
end)
:with_noremap()
:with_silent()
:with_desc("tool: Find word under cursor"),
Expand Down

0 comments on commit 3d73f02

Please # to comment.