summaryrefslogtreecommitdiff
path: root/after/plugin
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-03-06 23:15:28 +0000
committerw0rp <devw0rp@gmail.com>2017-03-06 23:15:34 +0000
commit75a2dc5ff5f1975b1a80b59704ffdfd1902b050f (patch)
tree71d0eea5647cccaceda29757af7ca292c536bfd8 /after/plugin
parent70fb1606adbbcfd29ba54b22f9b85fa8e3bd8e64 (diff)
downloadale-75a2dc5ff5f1975b1a80b59704ffdfd1902b050f.zip
Complain loudly when other conflicting plugins are installed
Diffstat (limited to 'after/plugin')
-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