From e0417687471c9de0dfb20c50093ad61a040be8e6 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 13 Jan 2022 23:14:58 +0100 Subject: Add spectre replace to which key --- lua/config/whichkey.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/config') diff --git a/lua/config/whichkey.lua b/lua/config/whichkey.lua index b1b57d2..94aa65a 100644 --- a/lua/config/whichkey.lua +++ b/lua/config/whichkey.lua @@ -173,6 +173,12 @@ local mappings = { k = { "Telescope keymaps", "Keymaps" }, C = { "Telescope commands", "Commands" }, }, + r = { + name = "Replace", + r = { "lua require('spectre').open()", "Replace" }, + w = { "lua require('spectre').open_visual({select_word=true})", "Replace Word" }, + f = { "lua require('spectre').open_file_search()", "Replace Buffer" }, + }, -- t = { -- name = "Terminal", -- cgit v1.2.3-70-g09d2