There's a Vim variable v:register that returns the default register " if the clipboard option is empty or */+ if it contains unnamed or unnamedplus respectively.
For those users that don't set the clipboard option to unnamedplus, it would be better if you used that Vim variable (vim.v.register in Lua) instead of the + (plus) register.
Thanks for the plugin!
There's a Vim variable
v:registerthat returns the default register " if theclipboardoption is empty or */+ if it containsunnamedorunnamedplusrespectively.For those users that don't set the
clipboardoption tounnamedplus, it would be better if you used that Vim variable (vim.v.register in Lua) instead of the + (plus) register.Thanks for the plugin!