bugfix: extract insert-mode to separate keymap

This commit is contained in:
Baipyrus 2024-05-14 08:50:02 +02:00
parent b85dd68579
commit a1ad7012fa

View File

@ -62,7 +62,9 @@ vim.keymap.set({ 'n', 'v' }, '<M-->', '<C-W>-')
if vim.g.neovide then
-- System clipboard keybinds in normal and visual mode
vim.keymap.set({ 'n', 'v' }, '<C-S-c>', '"+y', { desc = 'Yank to System clipboard' })
vim.keymap.set({ 'n', 'i', 'v' }, '<C-S-v>', '"+p', { desc = 'Paste from System clipboard' })
vim.keymap.set({ 'n', 'v' }, '<C-S-v>', '"+p', { desc = 'Paste from System clipboard' })
-- Clipboard for insert mode
vim.keymap.set({ 'i' }, '<C-S-v>', '<Esc>"+pi', { desc = 'Paste from System clipboard' })
-- Clipboard for command mode
vim.keymap.set('c', '<C-S-v>', '<C-R>+', { desc = 'Paste from System clipboard' })
end