Skip to content

Commit

Permalink
fix: replace and keep register
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Nov 13, 2023
1 parent 2e432cf commit c56d5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/native/plugin/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ vim.keymap.set("n", "<leader>j", "<cmd>lnext<CR>", opts_with_desc("Go to next LL

vim.keymap.set("i", "<C-c>", "<esc>", opts_with_desc("Ctrl-c as ESC in insert mode"))

vim.keymap.set("v", "<leader>p", '"_dp', opts_with_desc("Replace selected by pasting and keep pasted in the register"))
vim.keymap.set("v", "<leader>p", '"_dP', opts_with_desc("Replace selected by pasting and keep pasted in the register"))
vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]], opts_with_desc("delete without replacing your register"))

vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]], opts_with_desc("yank to system clipboard"))
Expand Down

0 comments on commit c56d5d6

Please sign in to comment.