From a1197f211deee2e7bf09199c16a65cd52a285f8c Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 1 Apr 2026 07:12:54 +0200 Subject: feat: keymap to replace by clipboard --- lua/ache/lazy.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lua/ache') 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", "lt", -- cgit v1.3-2-g11bf