From bb4a7fe410d8aaf9507cd2a8ed7c7680852cf297 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 3 Jun 2023 10:47:35 +0200 Subject: [PATCH] fix(spectre): make spectre behave with regards to swap files --- lua/lazyvim/plugins/editor.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua index 40875dd2..d37153c7 100644 --- a/lua/lazyvim/plugins/editor.lua +++ b/lua/lazyvim/plugins/editor.lua @@ -73,6 +73,8 @@ return { -- search/replace in multiple files { "nvim-pack/nvim-spectre", + cmd = "Spectre", + opts = { open_cmd = "noswapfile vnew" }, -- stylua: ignore keys = { { "sr", function() require("spectre").open() end, desc = "Replace in files (Spectre)" },