summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-03-30 16:37:28 +0100
committerGitHub <noreply@github.com>2017-03-30 16:37:28 +0100
commit3a74d242f9b2b09dd066e5cfd6ed9a0149395b87 (patch)
treeb4d0396c13f68b8525f95826583b7023b1bcaf26
parent2a88b60ff1ef5a4e9e73dc0d3be9f8ac51ec1309 (diff)
parente59e57d2e4c1e342b9708d955019911a06256f31 (diff)
downloadale-3a74d242f9b2b09dd066e5cfd6ed9a0149395b87.zip
Merge pull request #431 from janclarin/master
Check for existence of g:ale_emit_conflict_warnings before checking value
-rw-r--r--after/plugin/ale.vim11
1 files changed, 10 insertions, 1 deletions
diff --git a/after/plugin/ale.vim b/after/plugin/ale.vim
index 463b65a5..d738dbdd 100644
--- a/after/plugin/ale.vim
+++ b/after/plugin/ale.vim
@@ -1,13 +1,22 @@
+" 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
-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
+" Conflicting Plugins Checks
+
function! s:GetConflictingPluginWarning(plugin_name) abort
return 'ALE conflicts with ' . a:plugin_name
\ . '. Uninstall it, or disable this warning with '