aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-11-02 11:01:43 +0100
committerEliseo Martínez <eliseomarmol@gmail.com>2014-11-21 12:35:51 +0100
commitf7b5fd6f3f55cf7e48885852b1076de8cd18664c (patch)
tree3e23b2efd2c8b83823666e1fdada7f1d2ead73c4
parentbc1b9c1d90898a322cf43fd80f225105a5c7a122 (diff)
downloadrneovim-f7b5fd6f3f55cf7e48885852b1076de8cd18664c.tar.gz
rneovim-f7b5fd6f3f55cf7e48885852b1076de8cd18664c.tar.bz2
rneovim-f7b5fd6f3f55cf7e48885852b1076de8cd18664c.zip
Fix warnings: Fix outdated doc: Connecting to nvim through python REPL.
After neovim/python-client@b8b48bbe8fe9ee41ad73c9bd5a45e808504399e2, docs were no longer relevant.
-rw-r--r--runtime/doc/msgpack_rpc.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/msgpack_rpc.txt b/runtime/doc/msgpack_rpc.txt
index 41f387b452..8e53241775 100644
--- a/runtime/doc/msgpack_rpc.txt
+++ b/runtime/doc/msgpack_rpc.txt
@@ -113,7 +113,9 @@ string 'hello world!' on the current nvim instance:
A better way is to use the python REPL with the `neovim` package, where API
functions can be called interactively:
>
- >>> import neovim; nvim = neovim.connect('[address]')
+ >>> from neovim import socket_session, Nvim
+ >>> session = socket_session('[address]')
+ >>> nvim = Nvim.from_session(session)
>>> nvim.command('echo "hello world!"')
<
==============================================================================