Skip to content

Commit 2165d6b

Browse files
authored
Merge pull request #359 from mhinz/rename-to-pynvim
Rename occurrences of 'neovim' to 'pynvim'
2 parents 64b762e + 908dd56 commit 2165d6b

File tree

6 files changed

+16
-21
lines changed

6 files changed

+16
-21
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ sudo: false
22
language: python
33
env:
44
global:
5-
- NOSE_NOLOGCAPTURE=true
6-
- NOSE_VERBOSE=2
7-
- NOSE_WITH_COVERAGE=true
8-
- NOSE_COVER_PACKAGE=neovim
95
- PYTEST_ADDOPTS=-vv
106
matrix:
117
- CI_TARGET=tests

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,18 @@ connecting to and scripting Nvim processes through its msgpack-rpc API.
1313
Supports python 2.7, and 3.4 or later.
1414

1515
```sh
16-
pip2 install neovim
17-
pip3 install neovim
16+
pip2 install pynvim
17+
pip3 install pynvim
1818
```
1919

2020
If you only use one of python2 or python3, it is enough to install that
2121
version. You can install the package without being root by adding the `--user`
2222
flag.
2323

24-
If you follow Neovim master, make sure to upgrade the python-client when you
25-
upgrade neovim:
24+
Anytime you upgrade Neovim, make sure to upgrade pynvim as well:
2625
```sh
27-
pip2 install --upgrade neovim
28-
pip3 install --upgrade neovim
26+
pip2 install --upgrade pynvim
27+
pip3 install --upgrade pynvim
2928
```
3029

3130
Alternatively, the master version could be installed by executing the following
@@ -80,7 +79,7 @@ to the one exposed by the [python-vim
8079
bridge](http://vimdoc.sourceforge.net/htmldoc/if_pyth.html#python-vim)):
8180

8281
```python
83-
>>> from neovim import attach
82+
>>> from pynvim import attach
8483
# Create a python API session attached to unix domain socket created above:
8584
>>> nvim = attach('socket', path='/tmp/nvim')
8685
# Now do some work.
@@ -98,7 +97,7 @@ You can embed neovim into your python application instead of binding to a
9897
running neovim instance.
9998

10099
```python
101-
>>> from neovim import attach
100+
>>> from pynvim import attach
102101
>>> nvim = attach('child', argv=["/bin/env", "nvim", "--embed"])
103102
```
104103

docs/development.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ connect a python REPL to Neovim (note that the API is similar to the one exposed
6464

6565
.. code-block:: python
6666
67-
>>> from neovim import attach
67+
>>> from pynvim import attach
6868
# Create a python API session attached to unix domain socket created above:
6969
>>> nvim = attach('socket', path='/tmp/nvim')
7070
# Now do some work.
@@ -83,7 +83,7 @@ You can embed Neovim into your python application instead of binding to a runnin
8383

8484
.. code-block:: python
8585
86-
>>> from neovim import attach
86+
>>> from pynvim import attach
8787
>>> nvim = attach('child', argv=["/bin/env", "nvim", "--embed"])
8888
8989
The tests can be consulted for more examples.

docs/plugin-decorators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Plugin Decorators
22
=================
33

4-
.. module:: neovim.plugin
4+
.. module:: pynvim.plugin
55

66
Plugin decorators.
77

docs/usage/remote-plugins.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ Rplugins follow the structure of this example:
1111

1212
.. code-block:: python
1313
14-
import neovim
14+
import pynvim
1515
16-
@neovim.plugin
16+
@pynvim.plugin
1717
class TestPlugin(object):
1818
1919
def __init__(self, nvim):
2020
self.nvim = nvim
2121
22-
@neovim.function('TestFunction', sync=True)
22+
@pynvim.function('TestFunction', sync=True)
2323
def testfunction(self, args):
2424
return 3
2525
26-
@neovim.command('TestCommand', nargs='*', range='')
26+
@pynvim.command('TestCommand', nargs='*', range='')
2727
def testcommand(self, args, range):
2828
self.nvim.current.line = ('Command with args: {}, range: {}'
2929
.format(args, range))
3030
31-
@neovim.autocmd('BufEnter', pattern='*.py', eval='expand("<afile>")', sync=True)
31+
@pynvim.autocmd('BufEnter', pattern='*.py', eval='expand("<afile>")', sync=True)
3232
def on_bufenter(self, filename):
3333
self.nvim.out_write('testplugin is in ' + filename + '\n')
3434

pynvim/plugin/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def dec(f):
165165

166166

167167
def encoding(encoding=True):
168-
"""DEPRECATED: use neovim.decode()."""
168+
"""DEPRECATED: use pynvim.decode()."""
169169
if isinstance(encoding, str):
170170
encoding = True
171171

0 commit comments

Comments
 (0)