Sfoglia il codice sorgente

Pasting over text does not yank now

Alexey Dorokhov 2 anni fa
parent
commit
20bc996914
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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 })