From 2f38ed11c98a35b7abe53405d8f5f41cb1054f8f Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 14 Feb 2017 00:00:29 +0100 Subject: providers: Disable if `g:loaded_*` exists. The exists('g:loaded_foo') convention is rather common, and may be relied upon in some cases. It's also very unlikely that a user or plugin has any reason to set g:loaded_foo to zero, so the principle of least surprise can be brushed aside here. https://github.com/neovim/neovim/issues/6107#issuecomment-279532143 --- runtime/autoload/provider/python3.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/autoload/provider/python3.vim') diff --git a/runtime/autoload/provider/python3.vim b/runtime/autoload/provider/python3.vim index 3d6838e92c..4f47a03a9b 100644 --- a/runtime/autoload/provider/python3.vim +++ b/runtime/autoload/provider/python3.vim @@ -4,7 +4,7 @@ " Associating the plugin with the Python3 host is the first step because " plugins will be passed as command-line arguments -if get(g:, 'loaded_python3_provider', 0) +if exists('g:loaded_python3_provider') finish endif let g:loaded_python3_provider = 1 -- cgit