From 4bb6e4f64ab3820ab9fae6716cd59479d34b7edf Mon Sep 17 00:00:00 2001 From: Corey Hickey Date: Thu, 27 Oct 2022 16:55:33 -0700 Subject: [PATCH] Vim plugin: allow using system black rather than virtualenv (#3309) 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. - Fixes #3308 --- CHANGES.md | 3 +++ autoload/black.vim | 10 ++++++++++ docs/integrations/editors.md | 14 +++++++++++++- plugin/black.vim | 3 +++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 4db9611..1dcd7f0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -50,6 +50,9 @@ +- Vim plugin: Optionally allow using the system installation of Black via + `let g:black_use_virtualenv = 0`(#3309) + ### Documentation