Commit Graph

9 Commits

Author SHA1 Message Date
Thom Lu
a2f6706a1e fix vim plugin for 19.3b0 (#755) (#766) 2019-03-17 09:27:50 -07:00
Sami Salonen
1580477615 Put cursor in last line if old position is invalid (#641) 2019-03-06 19:34:17 -08:00
Bryan Forbes
a862795e1a Format pyi files correctly (#599) 2019-02-04 19:08:06 -08:00
David Hotham
3fb4516872 Remove mappings from Vim plugin. (#417)
They clashed with standard mappings.  Simplest just to let users define
their own.

Fixes #415
2018-08-17 16:45:47 +01:00
Jonty Wareing
2ec4c5f4f9 vim: Restore cursor/window position after format (#433)
Without this the cursor jumps to the top of the window after formatting
occurs.
2018-08-17 16:39:33 +01:00
Łukasz Langa
75a9447448 Don't crash the Vim plugin
Fixes #312
2018-06-07 11:40:41 -07:00
Matthew Walster
e5f5d54a22 vim: add "--skip-string-normalization" support (#310)
Since 18.6b0 was released, there has been a new option to skip string
normalization when Black is called, but it wasn't able to be specified
from within the vim plugin. This commit adds that functionality.

Tested with g:black_skip_string_normalization set to 0 (off) and 1 (on).
2018-06-06 15:45:17 -07:00
Codey Oxley
e196180a0d Addresses #174 Neovim Error (#197)
Neovim uses stdout for `msgpack` communication and the `subprocess` call for `virtualenv` was leaking that stream. Fix is to attach to a `subprocess.PIPE`.
2018-05-08 21:08:25 -07:00
Josh Holland
337a4199f9 Add install instructions for Vim plugin (#131) 2018-04-24 09:36:28 -07:00