mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-08 20:04:36 +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
|
-- search/replace in multiple files
|
||||||
{
|
{
|
||||||
"nvim-pack/nvim-spectre",
|
"MagicDuck/grug-far.nvim",
|
||||||
build = false,
|
opts = { headerMaxWidth = 80 },
|
||||||
cmd = "Spectre",
|
cmd = "GrugFar",
|
||||||
opts = { open_cmd = "noswapfile vnew" },
|
|
||||||
-- stylua: ignore
|
|
||||||
keys = {
|
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