From a1ad7012fa3f10eb7009ef4a7d0b1901b4305362 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Tue, 14 May 2024 08:50:02 +0200 Subject: [PATCH] bugfix: extract insert-mode to separate keymap --- lua/keymaps.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index b3ecb63..bac766f 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -62,7 +62,9 @@ vim.keymap.set({ 'n', 'v' }, '', '-') if vim.g.neovide then -- System clipboard keybinds in normal and visual mode vim.keymap.set({ 'n', 'v' }, '', '"+y', { desc = 'Yank to System clipboard' }) - vim.keymap.set({ 'n', 'i', 'v' }, '', '"+p', { desc = 'Paste from System clipboard' }) + vim.keymap.set({ 'n', 'v' }, '', '"+p', { desc = 'Paste from System clipboard' }) + -- Clipboard for insert mode + vim.keymap.set({ 'i' }, '', '"+pi', { desc = 'Paste from System clipboard' }) -- Clipboard for command mode vim.keymap.set('c', '', '+', { desc = 'Paste from System clipboard' }) end