summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/config/whichkey.lua6
1 files changed, 6 insertions, 0 deletions
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 = { "<cmd>Telescope keymaps<cr>", "Keymaps" },
C = { "<cmd>Telescope commands<cr>", "Commands" },
},
+ r = {
+ name = "Replace",
+ r = { "<cmd>lua require('spectre').open()<cr>", "Replace" },
+ w = { "<cmd>lua require('spectre').open_visual({select_word=true})<cr>", "Replace Word" },
+ f = { "<cmd>lua require('spectre').open_file_search()<cr>", "Replace Buffer" },
+ },
-- t = {
-- name = "Terminal",