roxma / nvim-yarp

Yet Another Remote Plugin Framework for Neovim
MIT License
230 stars 14 forks source link

[RFC] callback based asyc_request feature #14

Closed roxma closed 6 years ago

roxma commented 6 years ago

This is not a standard vim/neovim feature, But it seems to be needed for plugin communications

sketch:


let plug = yar#py3('...')

plug.asyc_request({'callback': 'callback_func', 'callback_data': {}}, method', args... )

func callback_func(callback_data, result_of_method)
  ...
endfunc

Cons:

roxma commented 6 years ago

Close for now, I'll reopen when I have a more concrete use case