mirror of
https://github.com/neovim/neovim.git
synced 2025-11-12 13:28:54 +00: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:
@@ -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
|
A better way is to use the python REPL with the `neovim` package, where API
|
||||||
functions can be called interactively:
|
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!"')
|
>>> nvim.command('echo "hello world!"')
|
||||||
<
|
<
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user