fix(nvim): make pasting in command mode work

This commit is contained in:
Price Hiller 2024-06-13 12:44:04 -05:00
parent 09714b2a84
commit f75e7fec2a
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -21,8 +21,10 @@ vim.g.neovide_cursor_vfx_particle_lifetime = 0.3
-- ===== Allow clipboard copy paste in neovim
-- Paste normal and visual mode
vim.keymap.set({ "n", "v" }, "<D-v>", '"+P')
-- Paste insert and command mode
vim.keymap.set({ "i", "c" }, "<D-v>", function()
-- Paste in command mode
vim.keymap.set("c", "<D-v>", "<C-R>+")
-- Paste in insert mode
vim.keymap.set("i", "<D-v>", function()
local register = "+"
local register_type = vim.fn.getregtype(register)
local register_content = vim.fn.getreg(register)