diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-14 00:00:29 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-14 00:02:50 +0100 |
commit | 2f38ed11c98a35b7abe53405d8f5f41cb1054f8f (patch) | |
tree | ddeb1bbbf42933101b65b9817bac3b4e3917fe5b /runtime/autoload/provider/python.vim | |
parent | 9451647d9b9218f679afdf26edddab383b0898a7 (diff) | |
download | rneovim-2f38ed11c98a35b7abe53405d8f5f41cb1054f8f.tar.gz rneovim-2f38ed11c98a35b7abe53405d8f5f41cb1054f8f.tar.bz2 rneovim-2f38ed11c98a35b7abe53405d8f5f41cb1054f8f.zip |
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
Diffstat (limited to 'runtime/autoload/provider/python.vim')
-rw-r--r-- | runtime/autoload/provider/python.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/provider/python.vim b/runtime/autoload/provider/python.vim index 052172223f..b99a046375 100644 --- a/runtime/autoload/provider/python.vim +++ b/runtime/autoload/provider/python.vim @@ -4,7 +4,7 @@ " Associating the plugin with the Python host is the first step because plugins " will be passed as command-line arguments -if get(g:, 'loaded_python_provider', 0) +if exists('g:loaded_python_provider') finish endif let g:loaded_python_provider = 1 |