♻️ refactor(nvim): spectre.nvim is now optional

grug-far.nvim is the new default search-replace plugin from lazyvim
This commit is contained in:
Sergio Laín 2024-07-21 01:07:10 +02:00
parent 34e5e9c0c9
commit b12af2bc28
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150
3 changed files with 43 additions and 25 deletions

View file

@ -29,8 +29,6 @@
"plugins.extras.editor.marks.grapple",
"plugins.extras.editor.neo-tree-extended",
"plugins.extras.editor.package-info",
"plugins.extras.editor.search-replace",
"plugins.extras.editor.spectre-extended",
"plugins.extras.editor.suda",
"plugins.extras.editor.telescope.lazy",
"plugins.extras.editor.telescope.telescope-extended",
@ -79,7 +77,7 @@
"plugins.extras.util.yadm"
],
"news": {
"NEWS.md": "6077"
"NEWS.md": "6296"
},
"version": 6
}

View file

@ -1,4 +1,5 @@
return {
{
"roobert/search-replace.nvim",
opts = {
default_replace_single_buffer_options = "gcI",
@ -23,4 +24,17 @@ return {
-- { "n", "<leader>rbe", "<CMD>SearchReplaceMultiBufferCExpr<CR>", desc = "Search and Replace in Multi Buffer (Current Expression)" },
-- { "n", "<leader>rbf", "<CMD>SearchReplaceMultiBufferCFile<CR>", desc = "Search and Replace in Multi Buffer (Current File)" },
},
},
{
"folke/which-key.nvim",
opts = {
spec = {
{ "<leader>sr", group = "replace", icon = "" },
},
},
},
{
"MagicDuck/grug-far.nvim",
enabled = false,
},
}

View file

@ -1,8 +1,10 @@
return {
{
"nvim-pack/nvim-spectre",
build = false,
cmd = "Spectre",
opts = {
open_cmd = "noswapfile vnew",
default = {
find = {
cmd = "rg",
@ -28,4 +30,8 @@ return {
},
},
},
{
"MagicDuck/grug-far.nvim",
enabled = false,
},
}