Skip to content

Commit 66617ca

Browse files
traversedajustinmk
authored andcommitted
doc: Add embedding example to readme.
1 parent 1b21fe7 commit 66617ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ bridge](http://vimdoc.sourceforge.net/htmldoc/if_pyth.html#python-vim)):
4141
[1, 2, 3]
4242
```
4343

44+
You can embed neovim into your python application instead of binding to a running neovim instance.
45+
46+
```python
47+
>>> from neovim import attach
48+
>>> nvim = attach('child', argv=["/bin/env", "nvim", "--embed"])
49+
```
50+
4451
The tests can be consulted for more examples.

0 commit comments

Comments
 (0)