feat: install grug-far

This commit is contained in:
Devin Haska 2025-06-05 13:18:59 -07:00
parent e0c9e4607c
commit 8148134592
Signed by: wonderfulfrog
SSH key fingerprint: SHA256:ejOGyH9064rJiikox4ykOHLeuUg1f9l8wmJxs+MzNw0
2 changed files with 29 additions and 7 deletions

View file

@ -27,4 +27,25 @@ return {
opts = {},
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" },
},
{
"MagicDuck/grug-far.nvim",
opts = {},
keys = {
{
"<leader>sr",
function()
local grug = require("grug-far")
local ext = vim.bo.buftype == "" and vim.fn.expand("%:e")
grug.open({
transient = true,
prefills = {
filesFilter = ext and ext ~= "" and "*." .. ext or nil,
},
})
end,
mode = { "n", "v" },
desc = "Search and Replace",
},
},
},
}