From 8a6899a8fcfabeba32f5a03cadf8ad129b2e576f Mon Sep 17 00:00:00 2001 From: Daniel Heras Quesada Date: Wed, 4 Mar 2026 22:58:20 +0100 Subject: [PATCH] feat: search and replace utils --- lazy-lock.json | 1 + lua/config/remap.lua | 7 +++++-- lua/plugins/search.lua | 7 +++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index 32ccfeb..2ce0140 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -10,6 +10,7 @@ "flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, "gitsigns.nvim": { "branch": "main", "commit": "d8918f06624dd53b9a82bd0e29c31bcfd541b40d" }, + "grug-far.nvim": { "branch": "main", "commit": "ac52ee2d87399dfd7b0d59d5b1d2bbaf2a4028f1" }, "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, "indent-blankline.nvim": { "branch": "master", "commit": "e10626f7fcd51ccd56d7ffc00883ba7e0aa28f78" }, "lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" }, diff --git a/lua/config/remap.lua b/lua/config/remap.lua index 13c21b2..33c933c 100644 --- a/lua/config/remap.lua +++ b/lua/config/remap.lua @@ -135,11 +135,14 @@ map("n", "ff", " Telescope find_files ", { desc = "Find files" map("n", "fa", " Telescope find_files follow=true no_ignore=true hidden=true ", { desc = "Find all" }) map("n", "fw", " Telescope live_grep ", { desc = "Live grep" }) map("n", "fb", " Telescope buffers ", { desc = "Find buffers" }) -map("n", "", " Telescope buffers ", { desc = "Find buffers" }) +map("n", "", " Telescope current_buffer_fuzzy_find ", { desc = "Find in current buffer" }) map("n", "fh", " Telescope help_tags ", { desc = "Help page" }) map("n", "fo", " Telescope oldfiles ", { desc = "Fild old files" }) map("n", "fz", " Telescope current_buffer_fuzzy_find ", { desc = "Find in current buffer" }) -map("n", "", " Telescope current_buffer_fuzzy_find ", { desc = "Find in current buffer" }) +map("n", "", " Telescope current_buffer_fuzzy_find ", { desc = "Find in current buffer" }) + +---- Replace ---- +map("n", "/", " GrugFar ", { desc = "Find in current buffer" }) ----------------------------------------------------------- diff --git a/lua/plugins/search.lua b/lua/plugins/search.lua index 47b9b75..a25c9d3 100644 --- a/lua/plugins/search.lua +++ b/lua/plugins/search.lua @@ -43,4 +43,11 @@ return { { "", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, }, }, + { + 'MagicDuck/grug-far.nvim', + -- config = function() + -- require('grug-far').setup({ + -- }); + -- end + }, }