The result from getreginfo can be passed directly to setreg making this a bit neater. Taken from the neovim defaults (ironically not from v_star-default). Link: https://github.com/neovim/neovim/blob/08847a9ea15a/runtime/lua/vim/_defaults.lua#L73-L79
The result from getreginfo can be passed directly to setreg making this a bit neater. Taken from the neovim defaults (ironically not from v_star-default). Link: https://github.com/neovim/neovim/blob/08847a9ea15a/runtime/lua/vim/_defaults.lua#L73-L79