summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-05-28 16:47:32 +0100
committerw0rp <devw0rp@gmail.com>2018-05-28 16:47:32 +0100
commite49e7d52bc29a902a813a8f2f638249ee10ea316 (patch)
tree64eb22afa7cb6418ac46af3535e6703691d7a94d
parent8a659b7cc6ca1c9e7fc7c0d14541d1e12563b83b (diff)
downloadale-e49e7d52bc29a902a813a8f2f638249ee10ea316.zip
#1524 Remove the plugin conflict warnings
-rw-r--r--after/plugin/ale.vim37
-rw-r--r--doc/ale.txt14
-rw-r--r--plugin/ale.vim10
3 files changed, 0 insertions, 61 deletions
diff --git a/after/plugin/ale.vim b/after/plugin/ale.vim
deleted file mode 100644
index d738dbdd..00000000
--- a/after/plugin/ale.vim
+++ /dev/null
@@ -1,37 +0,0 @@
-" 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')
- finish
-endif
-
-" Set the flag so this file is not run more than one time.
-let g:loaded_ale_after = 1
-
-" 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
-endif
-
-" Conflicting Plugins Checks
-
-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
diff --git a/doc/ale.txt b/doc/ale.txt
index 8a75ec11..25895f37 100644
--- a/doc/ale.txt
+++ b/doc/ale.txt
@@ -886,20 +886,6 @@ g:ale_echo_msg_warning_str *g:ale_echo_msg_warning_str*
The string used for `%severity%` for warnings. See |g:ale_echo_msg_format|
-g:ale_emit_conflict_warnings *g:ale_emit_conflict_warnings*
-
- Type: |Number|
- Default: `1`
-
- When set to `0`, ALE will not emit any warnings on startup about conflicting
- plugins. ALE will probably not work if other linting plugins are installed.
-
- When this option is set to `1`, ALE will add its `after` directory to
- |runtimepath| automatically, so the checks can be applied. Setting this
- option to `0` before ALE is loaded will prevent ALE from modifying
- |runtimepath|.
-
-
g:ale_enabled *g:ale_enabled*
*b:ale_enabled*
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 48ff531c..f63641b2 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -37,16 +37,6 @@ if has('nvim') && !has('nvim-0.2.0') && !get(g:, 'ale_use_deprecated_neovim')
execute 'echom ''Use `let g:ale_use_deprecated_neovim = 1` to silence this warning for now.'''
endif
-" This flag can be set to 0 to disable emitting conflict warnings.
-let g:ale_emit_conflict_warnings = get(g:, 'ale_emit_conflict_warnings', 1)
-
-if g:ale_emit_conflict_warnings
-\&& match(&runtimepath, '[/\\]ale[/\\]after') < 0
- " Add the after directory to the runtimepath
- " This is only done if the after directory isn't already in runtimepath
- let &runtimepath .= ',' . expand('<sfile>:p:h:h') . '/after'
-endif
-
" Set this flag so that other plugins can use it, like airline.
let g:loaded_ale = 1