From e49e7d52bc29a902a813a8f2f638249ee10ea316 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 28 May 2018 16:47:32 +0100 Subject: [PATCH] #1524 Remove the plugin conflict warnings --- after/plugin/ale.vim | 37 ------------------------------------- doc/ale.txt | 14 -------------- plugin/ale.vim | 10 ---------- 3 files changed, 61 deletions(-) delete mode 100644 after/plugin/ale.vim diff --git a/after/plugin/ale.vim b/after/plugin/ale.vim deleted file mode 100644 index d738dbd..0000000 --- a/after/plugin/ale.vim +++ /dev/null @@ -1,37 +0,0 @@ -" Author: w0rp -" 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 8a75ec1..25895f3 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 48ff531..f63641b 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(':p:h:h') . '/after' -endif - " Set this flag so that other plugins can use it, like airline. let g:loaded_ale = 1