Merge pull request #431 from janclarin/master
Check for existence of g:ale_emit_conflict_warnings before checking value
This commit is contained in:
commit
3a74d242f9
@ -1,13 +1,22 @@
|
|||||||
|
" Author: w0rp <devw0rp@gmail.com>
|
||||||
|
" Description: Follow-up checks for the plugin: warn about conflicting plugins.
|
||||||
|
|
||||||
|
" A flag for ensuring that this is not run more than one time.
|
||||||
if exists('g:loaded_ale_after')
|
if exists('g:loaded_ale_after')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Set the flag so this file is not run more than one time.
|
||||||
let g:loaded_ale_after = 1
|
let g:loaded_ale_after = 1
|
||||||
|
|
||||||
if !g:ale_emit_conflict_warnings
|
" Check if the flag is available and set to 0 to disable checking for and
|
||||||
|
" emitting conflicting plugin warnings.
|
||||||
|
if exists('g:ale_emit_conflict_warnings') && !g:ale_emit_conflict_warnings
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Conflicting Plugins Checks
|
||||||
|
|
||||||
function! s:GetConflictingPluginWarning(plugin_name) abort
|
function! s:GetConflictingPluginWarning(plugin_name) abort
|
||||||
return 'ALE conflicts with ' . a:plugin_name
|
return 'ALE conflicts with ' . a:plugin_name
|
||||||
\ . '. Uninstall it, or disable this warning with '
|
\ . '. Uninstall it, or disable this warning with '
|
||||||
|
Loading…
Reference in New Issue
Block a user