github neovim/pynvim 0.1.6

latest releases: 0.4.3, 0.4.2, 0.4.1...
7 years ago

This release contains some breaking changes, primarily for using this package as a client to remote nvim instances. Most python plugins (both legacy and rplugins) are expected to be unaffected.

This version requires recent master version of neovim (or 0.1.3 when it gets released).

nvim.session is unexported. Upgrade clients as follows:

nvim.session.threadsafe_call -> nvim.async_call
nvim.session.next_message -> nvim.next_message
nvim.session.run -> nvim.run_loop
nvim.session.stop -> nvim.stop_loop
nvim.session.request -> nvim.request (or nvim.api.method )

nvim.with_hook is gone. This was mostly used by clients to configure decoding on python3. With this release, neovim.attach will activate decoding for python3, so str is returned by default on both python2 and python3. attach takes an optional boolean keyword argument decode, to force decoding on or off. Decoding behavior can be changed with
nvim2 = nvim.with_decode(True/False)

Changes since 0.1.5:

  • b192bae make nvim.current.range.start/end behave like in Vim
  • 9498b38 more robust way to find the script host
  • 6655ced remove SessionHook and move public session api to the nvim object
  • 22537a2 introduce nvim.api.some_method and buffer.api.some_method to call the msgpack API directly
  • 69d6d0f allow nosetests without needing to set envirionment varibles to find nvim
  • 0886e84 remove DecodeHook
  • 02e28e7 change neovim.attach to setup decoding for python3

Also some bugs regarding line indexing are fixed in neovim master (not the python-client), for instance buffer.append("line", i), when the line is inserted after the last existing line, is no longer an error.

Don't miss a new pynvim release

NewReleases is sending notifications on new releases.