diff --git a/init.lua b/init.lua index af7d881e..ac7b2f1e 100644 --- a/init.lua +++ b/init.lua @@ -193,6 +193,12 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- Centre screen when scrolling with Ctrl-d and Ctrl-u vim.keymap.set('n', '', 'zz', { desc = 'Scroll [D]own one half screen' }) vim.keymap.set('n', '', 'zz', { desc = 'Scroll [U]p one half screen' }) +-- Paste without replacing the contents of the paste register +vim.keymap.set({ 'n', 'x' }, 'p', '"_dP', { desc = '[P]aste without replacing the paste register' }) + +-- Remove s as a binding so I can see the tooltip +vim.keymap.set('n', 's', '') + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands`