#274 Stop airline from doing anything if ALE doesn't load by using a different flag for loading with a very ugly name

This commit is contained in:
w0rp 2017-02-14 09:18:54 +00:00
parent 810e420510
commit afd0730248
1 changed files with 7 additions and 2 deletions

View File

@ -4,11 +4,13 @@
" Sanity Checks
if exists('g:loaded_ale')
if exists('g:loaded_ale_dont_use_this_in_other_plugins_please')
finish
endif
let g:loaded_ale = 1
" Set a special flag used only by this plugin for preventing doubly
" loading the script.
let g:loaded_ale_dont_use_this_in_other_plugins_please = 1
" A flag for detecting if the required features are set.
if has('nvim')
@ -30,6 +32,9 @@ if !s:has_features
finish
endif
" Set this flag so that other plugins can use it, like airline.
let g:loaded_ale = 1
" Set the TMPDIR environment variable if it is not set automatically.
" This can automatically fix some environments.
if has('unix') && empty($TMPDIR)