Complain loudly when other conflicting plugins are installed

This commit is contained in:
w0rp 2017-03-06 23:15:28 +00:00
parent 70fb1606ad
commit 75a2dc5ff5
4 changed files with 113 additions and 0 deletions

28
after/plugin/ale.vim Normal file
View file

@ -0,0 +1,28 @@
if exists('g:loaded_ale_after')
finish
endif
let g:loaded_ale_after = 1
if !g:ale_emit_conflict_warnings
finish
endif
function! s:GetConflictingPluginWarning(plugin_name) abort
return 'ALE conflicts with ' . a:plugin_name
\ . '. Uninstall it, or disable this warning with '
\ . '`let g:ale_emit_conflict_warnings = 0` in your vimrc file, '
\ . '*before* plugins are loaded.'
endfunction
if exists('g:loaded_syntastic_plugin')
throw s:GetConflictingPluginWarning('Syntastic')
endif
if exists('g:loaded_neomake')
throw s:GetConflictingPluginWarning('Neomake')
endif
if exists('g:loaded_validator_plugin')
throw s:GetConflictingPluginWarning('Validator')
endif