🚀 perf(nvim): use rg and sd for spectre engine
This commit is contained in:
parent
d199098e19
commit
ab71197847
1 changed files with 10 additions and 1 deletions
|
@ -2,7 +2,16 @@ return {
|
||||||
{
|
{
|
||||||
"nvim-pack/nvim-spectre",
|
"nvim-pack/nvim-spectre",
|
||||||
cmd = "Spectre",
|
cmd = "Spectre",
|
||||||
opts = {},
|
opts = {
|
||||||
|
default = {
|
||||||
|
find = {
|
||||||
|
cmd = "rg",
|
||||||
|
},
|
||||||
|
replace = {
|
||||||
|
cmd = "sd",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>srg", function() require("spectre").toggle() end, desc = "Globally" },
|
{ "<leader>srg", function() require("spectre").toggle() end, desc = "Globally" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue