Improve a function to change the clipboard register

I already have this function on my “utils.lua”

M.blockwise_clipboard = function()
    vim.cmd("call setreg('+', @+, 'b')")
    print('set + reg: blockwise!')
end

I use the above function to make the clipboard blockwise, which allows me to paste the clipboard content as a new column instead of pasting it below the current text.

The improvements would be accepting other registers like “*” or “0”

Of course learning more about the nature of the registers, characterwise, linewise and blockwise maybe would allows us to manipulate them directly in lua.