Skip to content

Releases: neovim/pynvim

Pynvim 0.2.5

29 Apr 08:30
Compare
Choose a tag to compare

This release adds support for Python 3.7 which now is in beta. async is a keyword in python3.7, and it should be replaced with async_ when used as a keyword argument to API methods. async is still supported with python 2.7 and 3.6 for the moment, but considered deprecated.

Also, integration with the in-process lua interpreter in Nvim is now supported. Please see the documentation for usage instructions.

Changes since 0.2.4:

  • debcde0 clean up remote object implementation (#313)
  • e880fe7 Guidelines for local plugin development (#317)
  • 1ab98e8 Update the working directory on DirChanged for legacy plugins (#296)
  • d53415d Fix SyntaxError in py3.7: use async_ instead of async (#274)
  • b65f62d Use pytest as nosetests are not longer maintained (#266)
  • d9aed96 Support using lua functions. buf.update_higlights as an internal example (#325)

0.2.4

06 Mar 16:29
Compare
Choose a tag to compare

Temporarily disable asyncio on windows again, as stdio is not functional with asyncio yet.

The new nvim.loop attribute is for the moment only available on POSIX systems.

Python-client 0.2.3

01 Mar 20:08
Compare
Choose a tag to compare

Replacing 0.2.2, which had a merge error.

In this release support of python3.3 is dropped. Henceforth we want python3
rplugins to be able to assume the usage of asyncio, so they can use the asyncio
event loop and libraries that build on it.

Furthermore, a close() method is added on nvim session objects. When used as
a library for externally connecting to a nvim instance (i e not rplugins),
it is recommended to call the close() method on the session object when it is
not needed anymore. Alternatively, sessions can be used as a context manager:

with neovim.attach('socket', path=thepath) as nvim:
    # do stuff with nvim session in this block:
    print(nvim.funcs.getpid())
    print(nvim.current.line)

This will close the session automatically.

Changes since 0.2.1:

  • 2689ddc add tests for plugin decorators #298
  • 63f257f allow library users to properly cleanup the event loop #303
  • 59c184f expose the asyncio event loop as nvim.loop (python 3.4+ only) #294
  • df3746f MsgpackStream: fix typos #304

Python-client 0.2.2

01 Mar 18:35
Compare
Choose a tag to compare

In this release support of python3.3 is dropped. Henceforth we want python3
rplugins to be able to assume the usage of asyncio, so they can use the asyncio
event loop and libraries that build on it.

Furthermore, a close() method is added on nvim session objects. When used as
a library for externally connecting to a nvim instance (i e not rplugins),
it is recommended to call the close() method on the session object when it is
not needed anymore. Alternatively, sessions can be used as a context manager:

with neovim.attach('socket', path=thepath) as nvim:
    # do stuff with nvim session in this block:
    print(nvim.funcs.getpid())
    print(nvim.current.line)

This will close the session automatically.

Changes since 0.2.1:

  • 2689ddc add tests for plugin decorators #298
  • 63f257f allow library users to properly cleanup the event loop #303
  • 59c184f expose the asyncio event loop as nvim.loop (python 3.4+ only) #294

Python-client 0.2.1

02 Feb 18:14
Compare
Choose a tag to compare

Adds compability with msgpack 0.5.2.

Changes since 0.2.0:

python-client 0.2.0

08 Nov 18:31
Compare
Choose a tag to compare

Brings the client up-to-date with Nvim 0.2.1.

Changes since 0.1.13:

  • a2e1169 Fix tests on windows (#201)
  • 9a0e729 Fix an indexing bug when setting lines in a Range object (#270)
  • 4abd5d0 Documentation update (#272)
  • a703b47 Make sure logging always uses UTF-8 regardless of locale (#276)
  • 68aa352 Add argument to allow nested notification handlers (#262)

neovim python-client 0.1.13

12 Jan 14:10
Compare
Choose a tag to compare

This release makes python 3.6 officially supported.

Changes since 0.1.12:

  • 549f721 Fix spawning a child on python 3.6
  • 171d137 Conform to pyuv 1.0 API
  • 99a2150 use tox for testing and add python 3.6 to test matrix

0.1.12

02 Dec 16:39
Compare
Choose a tag to compare

Changes since 0.1.11:

  • 317abda export Object.handle and make Buffer.number non-blocking

0.1.11

08 Nov 15:14
Compare
Choose a tag to compare

This release requires nvim 0.1.6 or later. Also python 2.6 support is dropped. Python 2.7 or 3.3+ is required.

Changes since 0.0.10:

  • ce840cb Add number attribute to Window and Tabpage objects
  • 111bc07 Use api level 1, as released with nvim 0.1.6.
  • ba1fcd4 add neovim.VERSION (python module version) and nvim.version attributes.
  • 6eb75a3 show full tracebacks for errors in handlers and callbacks

0.1.10

24 Sep 08:19
Compare
Choose a tag to compare

This is the last version supporting python 2.6. This version supports nvim 0.1.5 or later. The next version will likely require (not yet released) nvim 0.1.6 due to changes in the RPC API.

Changes since 0.1.9:

  • 861b0ba Report errors in handlers on stderr when used as external client
  • 36b2732 Don't rely on sys.stderr when it is not used
  • 1954384 Allow Buffer.append to take bytes (b'...') as argument
  • cb23953 Use predictable log file names