mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
Fix warnings: Fix outdated doc: Connecting to nvim through python REPL.
After neovim/python-client@b8b48bbe8f, docs were no longer relevant.
This commit is contained in:
parent
bc1b9c1d90
commit
f7b5fd6f3f
@ -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!"')
|
||||
<
|
||||
==============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user