vim.keymap.set({ 'n' }, "sr", function() require("spectre").open() end, { desc = "Replace in files (Spectre)" }) require('spectre').setup({ open_cmd = "noswapfile vnew", highlight = { search = "SpectreSearch", replace = "SpectreReplace", }, mapping = { ["send_to_qf"] = { map = "", cmd = "lua require('spectre.actions').send_to_qf()", desc = "send all items to quickfix", }, }, })