Mod: s:get_selected_text use silent yank.
Add: Vim.Buffer.put_selected_text function.