generate method ids dynamically by calling neovim api