diff options
| author | ache <ache@ache.one> | 2026-04-01 07:12:54 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2026-04-01 07:12:54 +0200 |
| commit | a1197f211deee2e7bf09199c16a65cd52a285f8c (patch) | |
| tree | cde79074f789d4ff88773a9fc8a648ec047352a2 | |
| parent | Use rustaceanvim instead of default rust_analyzer (diff) | |
feat: keymap to replace by clipboard
| -rw-r--r-- | lua/ache/lazy.lua | 14 |
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", |