Fix Nvim's streamed pasting. Supports Normal, Visual, Select, Insert, Terminal, and Cmdline modes. Compatible with Nvim v0.4.0 and above.
This is the same function as neovim/neovim#16585, with some extra code for Nvim v0.4.0 compatibility.
Install using a package manager, or by cloning this repository and adding the cloned directory into 'runtimepath'
from init.vim
or init.lua
. No extra steps are needed.