diff --git a/config/nvim/lua/fschauen/keymap.lua b/config/nvim/lua/fschauen/keymap.lua index 42f9f7e..8daf38e 100644 --- a/config/nvim/lua/fschauen/keymap.lua +++ b/config/nvim/lua/fschauen/keymap.lua @@ -82,6 +82,9 @@ M.setup = function() -- quickly change background map('n', 'bg', [[let &background = &background ==? 'light' ? 'dark' : 'light']]) + -- don't loose the original yanked contents when pasting in visual mode + map('x', 'p', [["_dP]]) + local diagnostic = require 'fschauen.diagnostic' -- navigate diagnostics