From 65090bfaac819ac1b985ee9e52aca69ff7c84ff1 Mon Sep 17 00:00:00 2001 From: oncomouse Date: Fri, 25 Feb 2022 08:41:01 -0600 Subject: [PATCH 1/4] Move test for g:load_black to improve plugin performance --- plugin/black.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/black.vim b/plugin/black.vim index dbe236b5f34..3fc11fe9e8d 100644 --- a/plugin/black.vim +++ b/plugin/black.vim @@ -15,6 +15,10 @@ " 1.2: " - use autoload script +if exists("g:load_black") + finish +endif + if v:version < 700 || !has('python3') func! __BLACK_MISSING() echo "The black.vim plugin requires vim7.0+ with Python 3.6 support." @@ -25,10 +29,6 @@ if v:version < 700 || !has('python3') finish endif -if exists("g:load_black") - finish -endif - let g:load_black = "py1.0" if !exists("g:black_virtualenv") if has("nvim") From 6883221c8549418bdcc3b1d9e11f86f7e47e34de Mon Sep 17 00:00:00 2001 From: oncomouse Date: Fri, 25 Feb 2022 08:54:26 -0600 Subject: [PATCH 2/4] Changelog entry --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 5f9341d048c..5ebd84f388e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -134,6 +134,7 @@ and the first release covered by our new ### Integrations +- Move test to disable plugin in vim/neovim, which speeds up loading (#2896) - Update GitHub action to support containerized runs (#2748) ### Documentation From dc8c767594590aba761c4984d157a25533674c3b Mon Sep 17 00:00:00 2001 From: oncomouse Date: Fri, 25 Feb 2022 09:07:25 -0600 Subject: [PATCH 3/4] Moved Changelog entry to the correct location --- CHANGES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 5ebd84f388e..008e7b27444 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -34,6 +34,7 @@ ### Integrations +- Move test to disable plugin in Vim/Neovim, which speeds up loading (#2896) ### Output @@ -134,7 +135,6 @@ and the first release covered by our new ### Integrations -- Move test to disable plugin in vim/neovim, which speeds up loading (#2896) - Update GitHub action to support containerized runs (#2748) ### Documentation From 7d21d33cca7fc332bf229e4776a626256960ccdf Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Fri, 4 Mar 2022 18:47:44 -0500 Subject: [PATCH 4/4] Add newline to please prettier --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index 008e7b27444..3e3c3aabddd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -34,6 +34,7 @@ ### Integrations + - Move test to disable plugin in Vim/Neovim, which speeds up loading (#2896) ### Output