Explorar o código

Pasting over text does not yank now

Alexey Dorokhov %!s(int64=2) %!d(string=hai) anos
pai
achega
20bc996914
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      init.lua

+ 4 - 0
init.lua

@@ -410,3 +410,7 @@ cmp.setup {
     { name = 'luasnip' },
   },
 }
+
+-- Do not yank when pasting over selected text
+--  "x" - visual mode
+vim.keymap.set("x", "p", "P", { silent = true })