summaryrefslogtreecommitdiff
path: root/after
diff options
context:
space:
mode:
Diffstat (limited to 'after')
-rw-r--r--after/plugin/ale.vim28
1 files changed, 28 insertions, 0 deletions
diff --git a/after/plugin/ale.vim b/after/plugin/ale.vim
new file mode 100644
index 00000000..463b65a5
--- /dev/null
+++ b/after/plugin/ale.vim
@@ -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