summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/ache/lazy.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/ache/lazy.lua b/lua/ache/lazy.lua
index 842f602..cb541dc 100644
--- a/lua/ache/lazy.lua
+++ b/lua/ache/lazy.lua
@@ -161,6 +161,20 @@ vim.api.nvim_create_autocmd("LspAttach", {
{ buffer = args.buf, desc = "Lsp: See available code actions" }
)
+ vim.keymap.set("n", "Cw", '"_diw"+P', {
+ noremap = true, -- No recursive remap
+ silent = true,
+ buffer = args.buf,
+ desc = "Replace the current entier word to the current clipboard",
+ })
+
+ vim.keymap.set("n", "CW", '"_diW"+P', {
+ noremap = true, -- No recursive remap
+ silent = true,
+ buffer = args.buf,
+ desc = "Replace the current entier word to the current clipboard",
+ })
+
vim.keymap.set(
"n",
"<leader>lt",