mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-08 11:55:22 +02:00
feat(editor): replace nvim-spectre with grug-far.nvim
This commit is contained in:
parent
eed91a3e4c
commit
90a3afac38
1 changed files with 15 additions and 6 deletions
|
@ -128,13 +128,22 @@ return {
|
|||
|
||||
-- search/replace in multiple files
|
||||
{
|
||||
"nvim-pack/nvim-spectre",
|
||||
build = false,
|
||||
cmd = "Spectre",
|
||||
opts = { open_cmd = "noswapfile vnew" },
|
||||
-- stylua: ignore
|
||||
"MagicDuck/grug-far.nvim",
|
||||
opts = { headerMaxWidth = 80 },
|
||||
cmd = "GrugFar",
|
||||
keys = {
|
||||
{ "<leader>sr", function() require("spectre").open() end, desc = "Replace in Files (Spectre)" },
|
||||
{
|
||||
"<leader>sr",
|
||||
function()
|
||||
require("grug-far").grug_far({
|
||||
prefills = {
|
||||
search = vim.fn.expand("<cword>"),
|
||||
filesFilter = "*." .. vim.fn.expand("%:e"),
|
||||
},
|
||||
})
|
||||
end,
|
||||
desc = "Search and Replace",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue