aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-11-21 06:44:50 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-11-21 06:44:50 -0500
commit9a774e726c362083691476a42ab6eac0b536397a (patch)
tree3e23b2efd2c8b83823666e1fdada7f1d2ead73c4
parentbc1b9c1d90898a322cf43fd80f225105a5c7a122 (diff)
parentf7b5fd6f3f55cf7e48885852b1076de8cd18664c (diff)
downloadrneovim-9a774e726c362083691476a42ab6eac0b536397a.tar.gz
rneovim-9a774e726c362083691476a42ab6eac0b536397a.tar.bz2
rneovim-9a774e726c362083691476a42ab6eac0b536397a.zip
Merge pull request #1373 from elmart/fix-outofdate-doc
Fix outdated doc: Connecting to nvim through python REPL.
-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!"')
<
==============================================================================