bugfix: added system clipboard paste in insert mode

This commit is contained in:
Baipyrus 2024-05-07 12:20:14 +02:00
parent 4c2f4424f7
commit d315af770e

View File

@ -56,7 +56,7 @@ vim.keymap.set('n', '<C-S-k>', '<cmd>cprev<cr>')
if vim.g.neovide then if vim.g.neovide then
-- System clipboard keybinds in normal and visual mode -- 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', 'v' }, '<C-S-C>', '"+y', { desc = 'Yank to System clipboard' })
vim.keymap.set({ 'n', 'v' }, '<C-S-V>', '"+p', { desc = 'Paste from System clipboard' }) vim.keymap.set({ 'n', 'i', 'v' }, '<C-S-V>', '"+p', { desc = 'Paste from System clipboard' })
-- Clipboard for command mode -- Clipboard for command mode
vim.keymap.set('c', '<C-S-V>', '<C-R>+', { desc = 'Paste from System clipboard' }) vim.keymap.set('c', '<C-S-V>', '<C-R>+', { desc = 'Paste from System clipboard' })
end end