From f88f59afb80868f3de1776cd85003e4b638a7c79 Mon Sep 17 00:00:00 2001 From: Jan Clarin Date: Thu, 30 Mar 2017 00:55:53 -0600 Subject: [PATCH 1/2] Fix #426 check for g:ale_emit_conflict_warnings existence --- after/plugin/ale.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/after/plugin/ale.vim b/after/plugin/ale.vim index 463b65a5..8963c822 100644 --- a/after/plugin/ale.vim +++ b/after/plugin/ale.vim @@ -4,7 +4,9 @@ endif let g:loaded_ale_after = 1 -if !g:ale_emit_conflict_warnings +" 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 From e59e57d2e4c1e342b9708d955019911a06256f31 Mon Sep 17 00:00:00 2001 From: Jan Clarin Date: Thu, 30 Mar 2017 00:58:25 -0600 Subject: [PATCH 2/2] Document conflicting plugins check --- after/plugin/ale.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/after/plugin/ale.vim b/after/plugin/ale.vim index 8963c822..d738dbdd 100644 --- a/after/plugin/ale.vim +++ b/after/plugin/ale.vim @@ -1,7 +1,12 @@ +" 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 @@ -10,6 +15,8 @@ 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 '