use Vim.Buffer.get_selected_text() instead