Vim plugin: allow using system black rather than virtualenv
Provide a configuration parameter to the Vim plugin which will allow the plugin to skip setting up a virtualenv. This is useful when there is a system installation of black (e.g. from a Linux distribution) which the user prefers to use.
Using a virtualenv remains the default.
Description
I have several reasons why using a virtualenv is undesirable to me. I have listed them in the following feature request. Fixes: https://github.com/psf/black/issues/3308
Checklist - did you ...
- [Y] Add an entry in
CHANGES.mdif necessary? - [N/A?] Add / update tests if necessary?
- [Y] Add new / update outdated documentation?
Thanks, Corey
@felix-hilden (or anyone) is there anything I need to do to get this PR merged? So far, I don't think there are any objections.
Thanks, Corey
Thank you.
To use this, add this to your .vimrc:
let g:black_use_virtualenv = 0