#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:
parent
810e420510
commit
afd0730248
@ -4,11 +4,13 @@
|
|||||||
|
|
||||||
" Sanity Checks
|
" Sanity Checks
|
||||||
|
|
||||||
if exists('g:loaded_ale')
|
if exists('g:loaded_ale_dont_use_this_in_other_plugins_please')
|
||||||
finish
|
finish
|
||||||
endif
|
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.
|
" A flag for detecting if the required features are set.
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
@ -30,6 +32,9 @@ if !s:has_features
|
|||||||
finish
|
finish
|
||||||
endif
|
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.
|
" Set the TMPDIR environment variable if it is not set automatically.
|
||||||
" This can automatically fix some environments.
|
" This can automatically fix some environments.
|
||||||
if has('unix') && empty($TMPDIR)
|
if has('unix') && empty($TMPDIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user