summaryrefslogtreecommitdiff
path: root/ale_linters/yaml/swaglint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/yaml/swaglint.vim')
-rw-r--r--ale_linters/yaml/swaglint.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/yaml/swaglint.vim b/ale_linters/yaml/swaglint.vim
index 75a496c5..4a22c70f 100644
--- a/ale_linters/yaml/swaglint.vim
+++ b/ale_linters/yaml/swaglint.vim
@@ -2,7 +2,7 @@
" Description: This file adds support for linting Swagger / OpenAPI documents using swaglint
call ale#Set('yaml_swaglint_executable', 'swaglint')
-call ale#Set('yaml_swaglint_use_global', 0)
+call ale#Set('yaml_swaglint_use_global', get(g:, 'ale_use_global_executables', 0))
function! ale_linters#yaml#swaglint#GetExecutable(buffer) abort
return ale#node#FindExecutable(a:buffer, 'yaml_swaglint', [