[nvim] feat: smart pasting in visual mode

This commit is contained in:
David JULIEN 2023-01-07 22:09:20 +01:00
parent d122b1d842
commit b66dcdcec7

View File

@ -35,6 +35,11 @@ vim.keymap.set("n", "<leader>p",
"\"+P",
{ desc = "Copy from clipboard"}
)
vim.keymap.set("x", "<leader>p",
"\"_dP",
{ desc = "Send selection to void register and paste from clipboard" }
)
vim.keymap.set("n", "<leader><enter>",
"<cmd>w! | !compiler %<CR>",
{ desc = "Compile current file using ~/.local/bin/compiler"}