From c19f3908d13d8425d4d9f659c50ff3aed01a3b13 Mon Sep 17 00:00:00 2001 From: Corey Hickey Date: Mon, 3 Oct 2022 17:08:39 -0700 Subject: [PATCH] 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. - 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 3a8cf4d6af5..0285e01f5f9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -42,6 +42,9 @@ +- Vim plugin: Optionally allow using the system installation of Black via + `let g:black_use_virtualenv = 0`(#3309) + ### Documentation