diff --git a/.config/nvim/lua/maps.lua b/.config/nvim/lua/maps.lua index a6afe95..1dfb8ef 100644 --- a/.config/nvim/lua/maps.lua +++ b/.config/nvim/lua/maps.lua @@ -35,6 +35,11 @@ vim.keymap.set("n", "p", "\"+P", { desc = "Copy from clipboard"} ) +vim.keymap.set("x", "p", + "\"_dP", + { desc = "Send selection to void register and paste from clipboard" } +) + vim.keymap.set("n", "", "w! | !compiler %", { desc = "Compile current file using ~/.local/bin/compiler"}