NAME

Neovim::RPC::API

VERSION

version 1.0.1

METHODS

export_dsl( $interactive )

Exports all the api commands as functions in the current namespace.

$rpc->api->export_dsl;

vim_set_current_line( "hello there!" );

If $interactive is set to true, the function will also $rpc-loop()> until the response is received from the editor. The result of the response promise will then be returned (or, if there was a problem, the error message will be warned).

$rpc->api->export_dsl(1);

vim_get_current_line->on_done(
    vim_set_current_line( scalar reverse shift );
);

AUTHOR

Yanick Champoux <yanick@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017, 2015 by Yanick Champoux.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.