diff --git a/ale_linters/css/stylelint.vim b/ale_linters/css/stylelint.vim index 9f68319..a16dfde 100644 --- a/ale_linters/css/stylelint.vim +++ b/ale_linters/css/stylelint.vim @@ -2,7 +2,7 @@ call ale#Set('css_stylelint_executable', 'stylelint') call ale#Set('css_stylelint_options', '') -call ale#Set('css_stylelint_use_global', 0) +call ale#Set('css_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#css#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'css_stylelint', [ diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim index 3783b5e..a665cef 100644 --- a/ale_linters/elm/make.vim +++ b/ale_linters/elm/make.vim @@ -2,7 +2,7 @@ " Description: Elm linting in Ale. Closely follows the Syntastic checker in https://github.com/ElmCast/elm-vim. call ale#Set('elm_make_executable', 'elm-make') -call ale#Set('elm_make_use_global', 0) +call ale#Set('elm_make_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#elm#make#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'elm_make', [ diff --git a/ale_linters/gitcommit/gitlint.vim b/ale_linters/gitcommit/gitlint.vim index 49aeda7..0b4ca0f 100644 --- a/ale_linters/gitcommit/gitlint.vim +++ b/ale_linters/gitcommit/gitlint.vim @@ -4,7 +4,7 @@ let g:ale_gitcommit_gitlint_executable = \ get(g:, 'ale_gitcommit_gitlint_executable', 'gitlint') let g:ale_gitcommit_gitlint_options = get(g:, 'ale_gitcommit_gitlint_options', '') -let g:ale_gitcommit_gitlint_use_global = get(g:, 'ale_gitcommit_gitlint_use_global', 0) +let g:ale_gitcommit_gitlint_use_global = get(g:, 'ale_gitcommit_gitlint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#gitcommit#gitlint#GetExecutable(buffer) abort diff --git a/ale_linters/handlebars/embertemplatelint.vim b/ale_linters/handlebars/embertemplatelint.vim index 68ea715..162a033 100644 --- a/ale_linters/handlebars/embertemplatelint.vim +++ b/ale_linters/handlebars/embertemplatelint.vim @@ -2,7 +2,7 @@ " Description: Ember-template-lint for checking Handlebars files call ale#Set('handlebars_embertemplatelint_executable', 'ember-template-lint') -call ale#Set('handlebars_embertemplatelint_use_global', 0) +call ale#Set('handlebars_embertemplatelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#handlebars#embertemplatelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'handlebars_embertemplatelint', [ diff --git a/ale_linters/html/htmlhint.vim b/ale_linters/html/htmlhint.vim index 88a83f1..caa15bb 100644 --- a/ale_linters/html/htmlhint.vim +++ b/ale_linters/html/htmlhint.vim @@ -3,7 +3,7 @@ call ale#Set('html_htmlhint_options', '') call ale#Set('html_htmlhint_executable', 'htmlhint') -call ale#Set('html_htmlhint_use_global', 0) +call ale#Set('html_htmlhint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#html#htmlhint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'html_htmlhint', [ diff --git a/ale_linters/javascript/flow.vim b/ale_linters/javascript/flow.vim index 643ea19..d2b362b 100755 --- a/ale_linters/javascript/flow.vim +++ b/ale_linters/javascript/flow.vim @@ -4,7 +4,7 @@ call ale#Set('javascript_flow_executable', 'flow') call ale#Set('javascript_flow_use_home_config', 0) -call ale#Set('javascript_flow_use_global', 0) +call ale#Set('javascript_flow_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#javascript#flow#GetExecutable(buffer) abort let l:flow_config = ale#path#FindNearestFile(a:buffer, '.flowconfig') diff --git a/ale_linters/javascript/jscs.vim b/ale_linters/javascript/jscs.vim index bcf3ee3..6004403 100644 --- a/ale_linters/javascript/jscs.vim +++ b/ale_linters/javascript/jscs.vim @@ -2,7 +2,7 @@ " Description: jscs for JavaScript files call ale#Set('javascript_jscs_executable', 'jscs') -call ale#Set('javascript_jscs_use_global', 0) +call ale#Set('javascript_jscs_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#javascript#jscs#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'javascript_jscs', [ diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim index 93b16a8..2e9bb9f 100644 --- a/ale_linters/javascript/jshint.vim +++ b/ale_linters/javascript/jshint.vim @@ -2,7 +2,7 @@ " Description: JSHint for Javascript files call ale#Set('javascript_jshint_executable', 'jshint') -call ale#Set('javascript_jshint_use_global', 0) +call ale#Set('javascript_jshint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#javascript#jshint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'javascript_jshint', [ diff --git a/ale_linters/javascript/standard.vim b/ale_linters/javascript/standard.vim index aa6a3a7..f16b837 100644 --- a/ale_linters/javascript/standard.vim +++ b/ale_linters/javascript/standard.vim @@ -2,7 +2,7 @@ " Description: standardjs for JavaScript files call ale#Set('javascript_standard_executable', 'standard') -call ale#Set('javascript_standard_use_global', 0) +call ale#Set('javascript_standard_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_standard_options', '') function! ale_linters#javascript#standard#GetExecutable(buffer) abort diff --git a/ale_linters/javascript/xo.vim b/ale_linters/javascript/xo.vim index cf305eb..bc8657e 100644 --- a/ale_linters/javascript/xo.vim +++ b/ale_linters/javascript/xo.vim @@ -2,7 +2,7 @@ " Description: xo for JavaScript files call ale#Set('javascript_xo_executable', 'xo') -call ale#Set('javascript_xo_use_global', 0) +call ale#Set('javascript_xo_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_xo_options', '') function! ale_linters#javascript#xo#GetExecutable(buffer) abort diff --git a/ale_linters/less/lessc.vim b/ale_linters/less/lessc.vim index 108679d..5fd9a38 100755 --- a/ale_linters/less/lessc.vim +++ b/ale_linters/less/lessc.vim @@ -3,7 +3,7 @@ call ale#Set('less_lessc_executable', 'lessc') call ale#Set('less_lessc_options', '') -call ale#Set('less_lessc_use_global', 0) +call ale#Set('less_lessc_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#less#lessc#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'less_lessc', [ diff --git a/ale_linters/less/stylelint.vim b/ale_linters/less/stylelint.vim index 690c8c9..8e16a09 100644 --- a/ale_linters/less/stylelint.vim +++ b/ale_linters/less/stylelint.vim @@ -2,7 +2,7 @@ call ale#Set('less_stylelint_executable', 'stylelint') call ale#Set('less_stylelint_options', '') -call ale#Set('less_stylelint_use_global', 0) +call ale#Set('less_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#less#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'less_stylelint', [ diff --git a/ale_linters/ocaml/ols.vim b/ale_linters/ocaml/ols.vim index c0255a6..077862f 100644 --- a/ale_linters/ocaml/ols.vim +++ b/ale_linters/ocaml/ols.vim @@ -2,7 +2,7 @@ " Description: A language server for OCaml call ale#Set('ocaml_ols_executable', 'ocaml-language-server') -call ale#Set('ocaml_ols_use_global', 0) +call ale#Set('ocaml_ols_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#linter#Define('ocaml', { \ 'name': 'ols', diff --git a/ale_linters/php/langserver.vim b/ale_linters/php/langserver.vim index be2d6ef..7e1321f 100644 --- a/ale_linters/php/langserver.vim +++ b/ale_linters/php/langserver.vim @@ -2,7 +2,7 @@ " Description: PHP Language server integration for ALE call ale#Set('php_langserver_executable', 'php-language-server.php') -call ale#Set('php_langserver_use_global', 0) +call ale#Set('php_langserver_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#php#langserver#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'php_langserver', [ diff --git a/ale_linters/php/phpcs.vim b/ale_linters/php/phpcs.vim index 399fbd2..faf8ad5 100644 --- a/ale_linters/php/phpcs.vim +++ b/ale_linters/php/phpcs.vim @@ -4,7 +4,7 @@ let g:ale_php_phpcs_standard = get(g:, 'ale_php_phpcs_standard', '') call ale#Set('php_phpcs_executable', 'phpcs') -call ale#Set('php_phpcs_use_global', 0) +call ale#Set('php_phpcs_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#php#phpcs#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'php_phpcs', [ diff --git a/ale_linters/pug/puglint.vim b/ale_linters/pug/puglint.vim index 6c29efe..165e68b 100644 --- a/ale_linters/pug/puglint.vim +++ b/ale_linters/pug/puglint.vim @@ -3,7 +3,7 @@ call ale#Set('pug_puglint_options', '') call ale#Set('pug_puglint_executable', 'pug-lint') -call ale#Set('pug_puglint_use_global', 0) +call ale#Set('pug_puglint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#pug#puglint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'pug_puglint', [ diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim index e7bbcfb..4de4daf 100644 --- a/ale_linters/python/flake8.vim +++ b/ale_linters/python/flake8.vim @@ -8,7 +8,7 @@ let g:ale_python_flake8_executable = let s:default_options = get(g:, 'ale_python_flake8_args', '') let g:ale_python_flake8_options = \ get(g:, 'ale_python_flake8_options', s:default_options) -let g:ale_python_flake8_use_global = get(g:, 'ale_python_flake8_use_global', 0) +let g:ale_python_flake8_use_global = get(g:, 'ale_python_flake8_use_global', get(g:, 'ale_use_global_executables', 0)) function! s:UsingModule(buffer) abort return ale#Var(a:buffer, 'python_flake8_options') =~# ' *-m flake8' diff --git a/ale_linters/python/mypy.vim b/ale_linters/python/mypy.vim index c1c9174..e8ceb6a 100644 --- a/ale_linters/python/mypy.vim +++ b/ale_linters/python/mypy.vim @@ -4,7 +4,7 @@ call ale#Set('python_mypy_executable', 'mypy') call ale#Set('python_mypy_ignore_invalid_syntax', 0) call ale#Set('python_mypy_options', '') -call ale#Set('python_mypy_use_global', 0) +call ale#Set('python_mypy_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#mypy#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_mypy', ['mypy']) diff --git a/ale_linters/python/prospector.vim b/ale_linters/python/prospector.vim index 66af598..b3d11aa 100644 --- a/ale_linters/python/prospector.vim +++ b/ale_linters/python/prospector.vim @@ -7,7 +7,7 @@ let g:ale_python_prospector_executable = let g:ale_python_prospector_options = \ get(g:, 'ale_python_prospector_options', '') -let g:ale_python_prospector_use_global = get(g:, 'ale_python_prospector_use_global', 0) +let g:ale_python_prospector_use_global = get(g:, 'ale_python_prospector_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#prospector#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_prospector', ['prospector']) diff --git a/ale_linters/python/pycodestyle.vim b/ale_linters/python/pycodestyle.vim index 19f05a5..9254f4a 100644 --- a/ale_linters/python/pycodestyle.vim +++ b/ale_linters/python/pycodestyle.vim @@ -3,7 +3,7 @@ call ale#Set('python_pycodestyle_executable', 'pycodestyle') call ale#Set('python_pycodestyle_options', '') -call ale#Set('python_pycodestyle_use_global', 0) +call ale#Set('python_pycodestyle_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pycodestyle#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pycodestyle', ['pycodestyle']) diff --git a/ale_linters/python/pyflakes.vim b/ale_linters/python/pyflakes.vim index b4a0b5f..475c3a6 100644 --- a/ale_linters/python/pyflakes.vim +++ b/ale_linters/python/pyflakes.vim @@ -2,7 +2,7 @@ " Description: pyflakes for python files call ale#Set('python_pyflakes_executable', 'pyflakes') -call ale#Set('python_pyflakes_use_global', 0) +call ale#Set('python_pyflakes_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pyflakes#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pyflakes', ['pyflakes']) diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index d757e8e..27ee6c6 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -7,7 +7,7 @@ let g:ale_python_pylint_executable = let g:ale_python_pylint_options = \ get(g:, 'ale_python_pylint_options', '') -let g:ale_python_pylint_use_global = get(g:, 'ale_python_pylint_use_global', 0) +let g:ale_python_pylint_use_global = get(g:, 'ale_python_pylint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pylint#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pylint', ['pylint']) diff --git a/ale_linters/python/pyls.vim b/ale_linters/python/pyls.vim index 9888853..42c6043 100644 --- a/ale_linters/python/pyls.vim +++ b/ale_linters/python/pyls.vim @@ -2,7 +2,7 @@ " Description: A language server for Python call ale#Set('python_pyls_executable', 'pyls') -call ale#Set('python_pyls_use_global', 0) +call ale#Set('python_pyls_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#python#pyls#GetExecutable(buffer) abort return ale#python#FindExecutable(a:buffer, 'python_pyls', ['pyls']) diff --git a/ale_linters/reason/ols.vim b/ale_linters/reason/ols.vim index b2cd5f7..4e5bd39 100644 --- a/ale_linters/reason/ols.vim +++ b/ale_linters/reason/ols.vim @@ -2,7 +2,7 @@ " Description: A language server for Reason call ale#Set('reason_ols_executable', 'ocaml-language-server') -call ale#Set('reason_ols_use_global', 0) +call ale#Set('reason_ols_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#linter#Define('reason', { \ 'name': 'ols', diff --git a/ale_linters/sass/stylelint.vim b/ale_linters/sass/stylelint.vim index 98c3725..fe941d6 100644 --- a/ale_linters/sass/stylelint.vim +++ b/ale_linters/sass/stylelint.vim @@ -1,7 +1,7 @@ " Author: diartyz call ale#Set('sass_stylelint_executable', 'stylelint') -call ale#Set('sass_stylelint_use_global', 0) +call ale#Set('sass_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#sass#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'sass_stylelint', [ diff --git a/ale_linters/scss/stylelint.vim b/ale_linters/scss/stylelint.vim index 00189a8..6bfdd09 100644 --- a/ale_linters/scss/stylelint.vim +++ b/ale_linters/scss/stylelint.vim @@ -1,7 +1,7 @@ " Author: diartyz call ale#Set('scss_stylelint_executable', 'stylelint') -call ale#Set('scss_stylelint_use_global', 0) +call ale#Set('scss_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#scss#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'scss_stylelint', [ diff --git a/ale_linters/stylus/stylelint.vim b/ale_linters/stylus/stylelint.vim index 2721529..1562692 100644 --- a/ale_linters/stylus/stylelint.vim +++ b/ale_linters/stylus/stylelint.vim @@ -2,7 +2,7 @@ call ale#Set('stylus_stylelint_executable', 'stylelint') call ale#Set('stylus_stylelint_options', '') -call ale#Set('stylus_stylelint_use_global', 0) +call ale#Set('stylus_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#stylus#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'stylus_stylelint', [ diff --git a/ale_linters/typescript/tslint.vim b/ale_linters/typescript/tslint.vim index 6f94fba..b28f7ce 100644 --- a/ale_linters/typescript/tslint.vim +++ b/ale_linters/typescript/tslint.vim @@ -4,7 +4,7 @@ call ale#Set('typescript_tslint_executable', 'tslint') call ale#Set('typescript_tslint_config_path', '') call ale#Set('typescript_tslint_rules_dir', '') -call ale#Set('typescript_tslint_use_global', 0) +call ale#Set('typescript_tslint_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('typescript_tslint_ignore_empty_files', 0) function! ale_linters#typescript#tslint#GetExecutable(buffer) abort diff --git a/ale_linters/typescript/tsserver.vim b/ale_linters/typescript/tsserver.vim index 7a155bd..5eb77da 100644 --- a/ale_linters/typescript/tsserver.vim +++ b/ale_linters/typescript/tsserver.vim @@ -3,7 +3,7 @@ call ale#Set('typescript_tsserver_executable', 'tsserver') call ale#Set('typescript_tsserver_config_path', '') -call ale#Set('typescript_tsserver_use_global', 0) +call ale#Set('typescript_tsserver_use_global', get(g:, 'ale_use_global_executables', 0)) " These functions need to be defined just to comply with the API for LSP. function! ale_linters#typescript#tsserver#GetProjectRoot(buffer) abort diff --git a/ale_linters/yaml/swaglint.vim b/ale_linters/yaml/swaglint.vim index 75a496c..4a22c70 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', [ diff --git a/autoload/ale/debugging.vim b/autoload/ale/debugging.vim index bcfd467..bec79a8 100644 --- a/autoload/ale/debugging.vim +++ b/autoload/ale/debugging.vim @@ -51,6 +51,7 @@ let s:global_variable_list = [ \ 'ale_sign_warning', \ 'ale_statusline_format', \ 'ale_type_map', +\ 'ale_use_global_executables', \ 'ale_warn_about_trailing_blank_lines', \ 'ale_warn_about_trailing_whitespace', \] diff --git a/autoload/ale/fixers/autopep8.vim b/autoload/ale/fixers/autopep8.vim index e2dd7bf..5798d82 100644 --- a/autoload/ale/fixers/autopep8.vim +++ b/autoload/ale/fixers/autopep8.vim @@ -2,7 +2,7 @@ " Description: Fixing files with autopep8. call ale#Set('python_autopep8_executable', 'autopep8') -call ale#Set('python_autopep8_use_global', 0) +call ale#Set('python_autopep8_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('python_autopep8_options', '') function! ale#fixers#autopep8#Fix(buffer) abort diff --git a/autoload/ale/fixers/black.vim b/autoload/ale/fixers/black.vim index 6f6d56f..4169322 100644 --- a/autoload/ale/fixers/black.vim +++ b/autoload/ale/fixers/black.vim @@ -2,7 +2,7 @@ " Description: Fixing Python files with black. " call ale#Set('python_black_executable', 'black') -call ale#Set('python_black_use_global', 0) +call ale#Set('python_black_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('python_black_options', '') function! ale#fixers#black#Fix(buffer) abort diff --git a/autoload/ale/fixers/clangformat.vim b/autoload/ale/fixers/clangformat.vim index b50b704..eae1a7b 100644 --- a/autoload/ale/fixers/clangformat.vim +++ b/autoload/ale/fixers/clangformat.vim @@ -3,7 +3,7 @@ scriptencoding utf-8 " Description: Fixing C/C++ files with clang-format. call ale#Set('c_clangformat_executable', 'clang-format') -call ale#Set('c_clangformat_use_global', 0) +call ale#Set('c_clangformat_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('c_clangformat_options', '') function! ale#fixers#clangformat#GetExecutable(buffer) abort diff --git a/autoload/ale/fixers/elm_format.vim b/autoload/ale/fixers/elm_format.vim index b2119d2..cd2be2c 100644 --- a/autoload/ale/fixers/elm_format.vim +++ b/autoload/ale/fixers/elm_format.vim @@ -2,7 +2,7 @@ " Description: Integration of elm-format with ALE. call ale#Set('elm_format_executable', 'elm-format') -call ale#Set('elm_format_use_global', 0) +call ale#Set('elm_format_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('elm_format_options', '--yes') function! ale#fixers#elm_format#GetExecutable(buffer) abort diff --git a/autoload/ale/fixers/fixjson.vim b/autoload/ale/fixers/fixjson.vim index 43eb063..64c6ba8 100644 --- a/autoload/ale/fixers/fixjson.vim +++ b/autoload/ale/fixers/fixjson.vim @@ -3,7 +3,7 @@ call ale#Set('json_fixjson_executable', 'fixjson') call ale#Set('json_fixjson_options', '') -call ale#Set('json_fixjson_use_global', 0) +call ale#Set('json_fixjson_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale#fixers#fixjson#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'json_fixjson', [ diff --git a/autoload/ale/fixers/google_java_format.vim b/autoload/ale/fixers/google_java_format.vim index 92632e8..6a2f549 100644 --- a/autoload/ale/fixers/google_java_format.vim +++ b/autoload/ale/fixers/google_java_format.vim @@ -2,7 +2,7 @@ " Description: Integration of Google-java-format with ALE. call ale#Set('google_java_format_executable', 'google-java-format') -call ale#Set('google_java_format_use_global', 0) +call ale#Set('google_java_format_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('google_java_format_options', '') function! ale#fixers#google_java_format#Fix(buffer) abort diff --git a/autoload/ale/fixers/isort.vim b/autoload/ale/fixers/isort.vim index b631822..74ba3bc 100644 --- a/autoload/ale/fixers/isort.vim +++ b/autoload/ale/fixers/isort.vim @@ -2,7 +2,7 @@ " Description: Fixing Python imports with isort. call ale#Set('python_isort_executable', 'isort') -call ale#Set('python_isort_use_global', 0) +call ale#Set('python_isort_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale#fixers#isort#Fix(buffer) abort let l:executable = ale#python#FindExecutable( diff --git a/autoload/ale/fixers/php_cs_fixer.vim b/autoload/ale/fixers/php_cs_fixer.vim index 7697ba6..26b8e5d 100644 --- a/autoload/ale/fixers/php_cs_fixer.vim +++ b/autoload/ale/fixers/php_cs_fixer.vim @@ -2,7 +2,7 @@ " Description: Fixing files with php-cs-fixer. call ale#Set('php_cs_fixer_executable', 'php-cs-fixer') -call ale#Set('php_cs_fixer_use_global', 0) +call ale#Set('php_cs_fixer_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('php_cs_fixer_options', '') function! ale#fixers#php_cs_fixer#GetExecutable(buffer) abort diff --git a/autoload/ale/fixers/phpcbf.vim b/autoload/ale/fixers/phpcbf.vim index 649e17d..487f369 100644 --- a/autoload/ale/fixers/phpcbf.vim +++ b/autoload/ale/fixers/phpcbf.vim @@ -3,7 +3,7 @@ call ale#Set('php_phpcbf_standard', '') call ale#Set('php_phpcbf_executable', 'phpcbf') -call ale#Set('php_phpcbf_use_global', 0) +call ale#Set('php_phpcbf_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale#fixers#phpcbf#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'php_phpcbf', [ diff --git a/autoload/ale/fixers/prettier.vim b/autoload/ale/fixers/prettier.vim index d75299e..dcc3581 100644 --- a/autoload/ale/fixers/prettier.vim +++ b/autoload/ale/fixers/prettier.vim @@ -3,7 +3,7 @@ " Description: Integration of Prettier with ALE. call ale#Set('javascript_prettier_executable', 'prettier') -call ale#Set('javascript_prettier_use_global', 0) +call ale#Set('javascript_prettier_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_prettier_options', '') function! ale#fixers#prettier#GetExecutable(buffer) abort diff --git a/autoload/ale/fixers/prettier_eslint.vim b/autoload/ale/fixers/prettier_eslint.vim index 5dd9102..bc0caad 100644 --- a/autoload/ale/fixers/prettier_eslint.vim +++ b/autoload/ale/fixers/prettier_eslint.vim @@ -4,7 +4,7 @@ function! ale#fixers#prettier_eslint#SetOptionDefaults() abort call ale#Set('javascript_prettier_eslint_executable', 'prettier-eslint') - call ale#Set('javascript_prettier_eslint_use_global', 0) + call ale#Set('javascript_prettier_eslint_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_prettier_eslint_options', '') endfunction diff --git a/autoload/ale/fixers/prettier_standard.vim b/autoload/ale/fixers/prettier_standard.vim index 7d938e1..b6e0a6f 100644 --- a/autoload/ale/fixers/prettier_standard.vim +++ b/autoload/ale/fixers/prettier_standard.vim @@ -2,7 +2,7 @@ " Description: Integration of Prettier Standard with ALE. call ale#Set('javascript_prettier_standard_executable', 'prettier-standard') -call ale#Set('javascript_prettier_standard_use_global', 0) +call ale#Set('javascript_prettier_standard_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_prettier_standard_options', '') function! ale#fixers#prettier_standard#GetExecutable(buffer) abort diff --git a/autoload/ale/fixers/standard.vim b/autoload/ale/fixers/standard.vim index c998cfd..2b1f6f9 100644 --- a/autoload/ale/fixers/standard.vim +++ b/autoload/ale/fixers/standard.vim @@ -2,7 +2,7 @@ " Description: Fixing files with Standard. call ale#Set('javascript_standard_executable', 'standard') -call ale#Set('javascript_standard_use_global', 0) +call ale#Set('javascript_standard_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_standard_options', '') function! ale#fixers#standard#GetExecutable(buffer) abort diff --git a/autoload/ale/fixers/stylelint.vim b/autoload/ale/fixers/stylelint.vim index 899fcf4..30309c7 100644 --- a/autoload/ale/fixers/stylelint.vim +++ b/autoload/ale/fixers/stylelint.vim @@ -2,7 +2,7 @@ " Description: Fixing files with stylelint. call ale#Set('stylelint_executable', 'stylelint') -call ale#Set('stylelint_use_global', 0) +call ale#Set('stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale#fixers#stylelint#GetExecutable(buffer) abort return ale#node#FindExecutable(a:buffer, 'stylelint', [ diff --git a/autoload/ale/fixers/swiftformat.vim b/autoload/ale/fixers/swiftformat.vim index dcc204b..304182b 100644 --- a/autoload/ale/fixers/swiftformat.vim +++ b/autoload/ale/fixers/swiftformat.vim @@ -2,7 +2,7 @@ " Description: Integration of SwiftFormat with ALE. call ale#Set('swift_swiftformat_executable', 'swiftformat') -call ale#Set('swift_swiftformat_use_global', 0) +call ale#Set('swift_swiftformat_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('swift_swiftformat_options', '') function! ale#fixers#swiftformat#GetExecutable(buffer) abort diff --git a/autoload/ale/fixers/yapf.vim b/autoload/ale/fixers/yapf.vim index ba7453b..f04bb1f 100644 --- a/autoload/ale/fixers/yapf.vim +++ b/autoload/ale/fixers/yapf.vim @@ -2,7 +2,7 @@ " Description: Fixing Python files with yapf. call ale#Set('python_yapf_executable', 'yapf') -call ale#Set('python_yapf_use_global', 0) +call ale#Set('python_yapf_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale#fixers#yapf#Fix(buffer) abort let l:executable = ale#python#FindExecutable( diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim index ff59016..bc10ec2 100644 --- a/autoload/ale/handlers/eslint.vim +++ b/autoload/ale/handlers/eslint.vim @@ -5,7 +5,7 @@ let s:sep = has('win32') ? '\' : '/' call ale#Set('javascript_eslint_options', '') call ale#Set('javascript_eslint_executable', 'eslint') -call ale#Set('javascript_eslint_use_global', 0) +call ale#Set('javascript_eslint_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('javascript_eslint_suppress_eslintignore', 0) call ale#Set('javascript_eslint_suppress_missing_config', 0) diff --git a/autoload/ale/handlers/textlint.vim b/autoload/ale/handlers/textlint.vim index 4e56e12..6d495b0 100644 --- a/autoload/ale/handlers/textlint.vim +++ b/autoload/ale/handlers/textlint.vim @@ -2,7 +2,7 @@ " Description: textlint, a proofreading tool (https://textlint.github.io/) call ale#Set('textlint_executable', 'textlint') -call ale#Set('textlint_use_global', 0) +call ale#Set('textlint_use_global', get(g:, 'ale_use_global_executables', 0)) call ale#Set('textlint_options', '') function! ale#handlers#textlint#GetExecutable(buffer) abort diff --git a/autoload/ale/handlers/writegood.vim b/autoload/ale/handlers/writegood.vim index f9d452e..aee7c4d 100644 --- a/autoload/ale/handlers/writegood.vim +++ b/autoload/ale/handlers/writegood.vim @@ -4,7 +4,7 @@ function! ale#handlers#writegood#ResetOptions() abort call ale#Set('writegood_options', '') call ale#Set('writegood_executable', 'write-good') - call ale#Set('writegood_use_global', 0) + call ale#Set('writegood_use_global', get(g:, 'ale_use_global_executables', 0)) endfunction " Reset the options so the tests can test how they are set. diff --git a/doc/ale-css.txt b/doc/ale-css.txt index 474445b..f3cae38 100644 --- a/doc/ale-css.txt +++ b/doc/ale-css.txt @@ -30,7 +30,7 @@ g:ale_css_stylelint_options *g:ale_css_stylelint_options* g:ale_css_stylelint_use_global *g:ale_css_stylelint_use_global* *b:ale_css_stylelint_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-elm.txt b/doc/ale-elm.txt index e96205d..32beab7 100644 --- a/doc/ale-elm.txt +++ b/doc/ale-elm.txt @@ -16,7 +16,7 @@ g:ale_elm_format_executable *g:ale_elm_format_executable* g:ale_elm_format_use_global *g:ale_elm_format_use_global* *b:ale_elm_format_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -42,7 +42,7 @@ g:ale_elm_make_executable *g:ale_elm_make_executable* g:ale_elm_make_use_global *g:ale_elm_make_use_global* *b:ale_elm_make_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-gitcommit.txt b/doc/ale-gitcommit.txt index 71813dd..19ba8e9 100644 --- a/doc/ale-gitcommit.txt +++ b/doc/ale-gitcommit.txt @@ -30,7 +30,7 @@ g:ale_gitcommit_gitlint_options *g:ale_gitcommit_gitlint_options* g:ale_gitcommit_gitlint_use_global *g:ale_gitcommit_gitlint_use_global* *b:ale_gitcommit_gitlint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` This variable controls whether or not ALE will search for gitlint in a virtualenv directory first. If this variable is set to `1`, then ALE will diff --git a/doc/ale-handlebars.txt b/doc/ale-handlebars.txt index 6908aac..061c5d3 100644 --- a/doc/ale-handlebars.txt +++ b/doc/ale-handlebars.txt @@ -16,7 +16,7 @@ g:ale_handlebars_embertemplatelint_executable g:ale_handlebars_embertemplatelint_use_global *g:ale_handlebars_embertemplatelint_use_global* Type: |Number| *b:ale_handlebars_embertemplatelint_use_global* - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-html.txt b/doc/ale-html.txt index 416e932..2d8873e 100644 --- a/doc/ale-html.txt +++ b/doc/ale-html.txt @@ -24,7 +24,7 @@ g:ale_html_htmlhint_options *g:ale_html_htmlhint_options* g:ale_html_htmlhint_use_global *g:ale_html_htmlhint_use_global* *b:ale_html_htmlhint_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-javascript.txt b/doc/ale-javascript.txt index f625fd7..80f4101 100644 --- a/doc/ale-javascript.txt +++ b/doc/ale-javascript.txt @@ -45,7 +45,7 @@ g:ale_javascript_eslint_options *g:ale_javascript_eslint_options* g:ale_javascript_eslint_use_global *g:ale_javascript_eslint_use_global* *b:ale_javascript_eslint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -98,7 +98,7 @@ g:ale_javascript_flow_use_home_config *g:ale_javascript_flow_use_home_config* g:ale_javascript_flow_use_global *g:ale_javascript_flow_use_global* *b:ale_javascript_flow_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -126,7 +126,7 @@ g:ale_javascript_jscs_executable *g:ale_javascript_jscs_executable* g:ale_javascript_jscs_use_global *g:ale_javascript_jscs_use_global* *b:ale_javascript_jscs_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -145,7 +145,7 @@ g:ale_javascript_jshint_executable *g:ale_javascript_jshint_executable* g:ale_javascript_jshint_use_global *g:ale_javascript_jshint_use_global* *b:ale_javascript_jshint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -172,7 +172,7 @@ g:ale_javascript_prettier_options *g:ale_javascript_prettier_options* g:ale_javascript_prettier_use_global *g:ale_javascript_prettier_use_global* *b:ale_javascript_prettier_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -202,7 +202,7 @@ g:ale_javascript_prettier_eslint_use_global *g:ale_javascript_prettier_eslint_use_global* *b:ale_javascript_prettier_eslint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -233,7 +233,7 @@ g:ale_javascript_prettier_standard_use_global *g:ale_javascript_prettier_standard_use_global* *b:ale_javascript_prettier_standard_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -262,7 +262,7 @@ g:ale_javascript_standard_options *g:ale_javascript_standard_options* g:ale_javascript_standard_use_global *g:ale_javascript_standard_use_global* *b:ale_javascript_standard_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -289,7 +289,7 @@ g:ale_javascript_xo_options *g:ale_javascript_xo_options* g:ale_javascript_xo_use_global *g:ale_javascript_xo_use_global* *b:ale_javascript_xo_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-json.txt b/doc/ale-json.txt index 1e97abc..0ec7932 100644 --- a/doc/ale-json.txt +++ b/doc/ale-json.txt @@ -44,7 +44,7 @@ g:ale_json_fixjson_use_global *g:ale_json_fixjson_use_global* *b:ale_json_fixjson_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-less.txt b/doc/ale-less.txt index 05f56e2..040e511 100644 --- a/doc/ale-less.txt +++ b/doc/ale-less.txt @@ -24,7 +24,7 @@ g:ale_less_lessc_options *g:ale_less_lessc_options* g:ale_less_lessc_use_global *g:ale_less_lessc_use_global* *b:ale_less_lessc_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -57,7 +57,7 @@ g:ale_less_stylelint_options *g:ale_less_stylelint_options* g:ale_less_stylelint_use_global *g:ale_less_stylelint_use_global* *b:ale_less_stylelint_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-ocaml.txt b/doc/ale-ocaml.txt index cfa365a..a7ef8d2 100644 --- a/doc/ale-ocaml.txt +++ b/doc/ale-ocaml.txt @@ -28,7 +28,7 @@ g:ale_ocaml_ols_executable *g:ale_ocaml_ols_executable* g:ale_ocaml_ols_use_global *g:ale_ocaml_ols_use_global* *b:ale_ocaml_ols_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` This variable can be set to `1` to always use the globally installed executable. See also |ale-integrations-local-executables|. diff --git a/doc/ale-php.txt b/doc/ale-php.txt index 52b37ea..1ba3438 100644 --- a/doc/ale-php.txt +++ b/doc/ale-php.txt @@ -37,7 +37,7 @@ g:ale_php_langserver_executable *g:ale_php_langserver_executable* g:ale_php_langserver_use_global *g:ale_php_langserver_use_global* *b:ale_php_langserver_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` This variable can be set to `1` to force the language server to be run with the executable set for |g:ale_php_langserver_executable|. @@ -84,7 +84,7 @@ g:ale_php_phpcbf_standard *g:ale_php_phpcbf_standard* g:ale_php_phpcbf_use_global *g:ale_php_phpcbf_use_global* *b:ale_php_phpcbf_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -113,7 +113,7 @@ g:ale_php_phpcs_standard *g:ale_php_phpcs_standard* g:ale_php_phpcs_use_global *g:ale_php_phpcs_use_global* *b:ale_php_phpcs_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -179,7 +179,7 @@ g:ale_php_cs_fixer_executable *g:ale_php_cs_fixer_executable* g:ale_php_cs_fixer_use_global *g:ale_php_cs_fixer_use_global* *b:ale_php_cs_fixer_use_global* Type: |Boolean| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` This variable force globally installed fixer. diff --git a/doc/ale-pug.txt b/doc/ale-pug.txt index 0107148..e2836f8 100644 --- a/doc/ale-pug.txt +++ b/doc/ale-pug.txt @@ -35,7 +35,7 @@ g:ale_pug_puglint_options *g:ale_pug_puglint_options* g:ale_pug_puglint_use_global *g:ale_pug_puglint_use_global* *b:ale_pug_puglint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-python.txt b/doc/ale-python.txt index dc7c8bb..396603e 100644 --- a/doc/ale-python.txt +++ b/doc/ale-python.txt @@ -24,7 +24,7 @@ g:ale_python_autopep8_options *g:ale_python_autopep8_options* g:ale_python_autopep8_use_global *g:ale_python_autopep8_use_global* *b:ale_python_autopep8_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -51,7 +51,7 @@ g:ale_python_black_options *g:ale_python_black_options* g:ale_python_black_use_global *g:ale_python_black_use_global* *b:ale_python_black_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -88,7 +88,7 @@ g:ale_python_flake8_options *g:ale_python_flake8_options* g:ale_python_flake8_use_global *g:ale_python_flake8_use_global* *b:ale_python_flake8_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` This variable controls whether or not ALE will search for flake8 in a virtualenv directory first. If this variable is set to `1`, then ALE will @@ -111,7 +111,7 @@ g:ale_python_isort_executable *g:ale_python_isort_executable* g:ale_python_isort_use_global *g:ale_python_isort_use_global* *b:ale_python_isort_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -154,7 +154,7 @@ g:ale_python_mypy_options *g:ale_python_mypy_options* g:ale_python_mypy_use_global *g:ale_python_mypy_use_global* *b:ale_python_mypy_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -194,7 +194,7 @@ g:ale_python_prospector_options *g:ale_python_prospector_options* g:ale_python_prospector_use_global *g:ale_python_prospector_use_global* *b:ale_python_prospector_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -223,7 +223,7 @@ g:ale_python_pycodestyle_options *g:ale_python_pycodestyle_options* g:ale_python_pycodestyle_use_global *g:ale_python_pycodestyle_use_global* *b:ale_python_pycodestyle_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -262,7 +262,7 @@ g:ale_python_pylint_options *g:ale_python_pylint_options* g:ale_python_pylint_use_global *g:ale_python_pylint_use_global* *b:ale_python_pylint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -281,7 +281,7 @@ g:ale_python_pyls_executable *g:ale_python_pyls_executable* g:ale_python_pyls_use_global *g:ale_python_pyls_use_global* *b:ale_python_pyls_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -300,7 +300,7 @@ g:ale_python_yapf_executable *g:ale_python_yapf_executable* g:ale_python_yapf_use_global *g:ale_python_yapf_use_global* *b:ale_python_yapf_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-reasonml.txt b/doc/ale-reasonml.txt index 36ddd75..426d4c4 100644 --- a/doc/ale-reasonml.txt +++ b/doc/ale-reasonml.txt @@ -28,7 +28,7 @@ g:ale_reason_ols_executable *g:ale_reason_ols_executable* g:ale_reason_ols_use_global *g:ale_reason_ols_use_global* *b:ale_reason_ols_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` This variable can be set to `1` to always use the globally installed executable. See also |ale-integrations-local-executables|. diff --git a/doc/ale-sass.txt b/doc/ale-sass.txt index 5465957..08e9a38 100644 --- a/doc/ale-sass.txt +++ b/doc/ale-sass.txt @@ -16,7 +16,7 @@ g:ale_sass_stylelint_executable *g:ale_sass_stylelint_executable* g:ale_sass_stylelint_use_global *g:ale_sass_stylelint_use_global* *b:ale_sass_stylelint_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-scss.txt b/doc/ale-scss.txt index 19695a7..14e6feb 100644 --- a/doc/ale-scss.txt +++ b/doc/ale-scss.txt @@ -22,7 +22,7 @@ g:ale_scss_stylelint_executable *g:ale_scss_stylelint_executable* g:ale_scss_stylelint_use_global *g:ale_scss_stylelint_use_global* *b:ale_scss_stylelint_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-stylus.txt b/doc/ale-stylus.txt index 59d9055..3e6ba90 100644 --- a/doc/ale-stylus.txt +++ b/doc/ale-stylus.txt @@ -24,7 +24,7 @@ g:ale_stylus_stylelint_options *g:ale_stylus_stylelint_options* g:ale_stylus_stylelint_use_global *g:ale_stylus_stylelint_use_global* *b:ale_stylus_stylelint_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-text.txt b/doc/ale-text.txt index 844f2ff..913d7e6 100644 --- a/doc/ale-text.txt +++ b/doc/ale-text.txt @@ -27,7 +27,7 @@ g:ale_textlint_options *g:ale_textlint_options* g:ale_textlint_use_global *g:ale_textlint_use_global* *b:ale_textlint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale-typescript.txt b/doc/ale-typescript.txt index d83a2df..1bccf5a 100644 --- a/doc/ale-typescript.txt +++ b/doc/ale-typescript.txt @@ -59,7 +59,7 @@ g:ale_typescript_tslint_rules_dir *g:ale_typescript_tslint_rules_dir* g:ale_typescript_tslint_use_global *g:ale_typescript_tslint_use_global* *b:ale_typescript_tslint_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -91,7 +91,7 @@ g:ale_typescript_tsserver_config_path *g:ale_typescript_tsserver_config_path* g:ale_typescript_tsserver_use_global *g:ale_typescript_tsserver_use_global* *b:ale_typescript_tsserver_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` This variable controls whether or not ALE will search for a local path for tsserver first. If this variable is set to `1`, then ALE will always use the diff --git a/doc/ale-yaml.txt b/doc/ale-yaml.txt index a902f25..044d0b3 100644 --- a/doc/ale-yaml.txt +++ b/doc/ale-yaml.txt @@ -31,7 +31,7 @@ g:ale_yaml_swaglint_executable *g:ale_yaml_swaglint_executable* g:ale_yaml_swaglint_use_global *g:ale_yaml_swaglint_use_global* *b:ale_yaml_swaglint_use_global* Type: |String| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| diff --git a/doc/ale.txt b/doc/ale.txt index 0d3053e..c051a86 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1498,6 +1498,18 @@ g:ale_type_map *g:ale_type_map* Type maps can be set per-buffer with `b:ale_type_map`. +g:ale_use_global_executables *g:ale_use_global_executables* + + Type: |Number| + Default: not set + + This option can be set to change the default for all `_use_global` options. + This option must be set before ALE is loaded, preferably in a vimrc file. + + See |ale-integrations-local-executables| for more information on those + options. + + g:ale_virtualenv_dir_names *g:ale_virtualenv_dir_names* b:ale_virtualenv_dir_names *b:ale_virtualenv_dir_names* @@ -1685,7 +1697,7 @@ g:ale_writegood_options *g:ale_writegood_options* g:ale_writegood_use_global *g:ale_writegood_use_global* *b:ale_writegood_use_global* Type: |Number| - Default: `0` + Default: `get(g:, 'ale_use_global_executables', 0)` See |ale-integrations-local-executables| @@ -1719,6 +1731,9 @@ If you prefer to use global executables for those tools, set the relevant let g:ale_python_flake8_use_global = 1 < +|g:ale_use_global_executables| can be set to `1` in your vimrc file to make +ALE use global executables for all linters by default. + The option |g:ale_virtualenv_dir_names| controls the local virtualenv paths ALE will use to search for Python executables. diff --git a/test/test_ale_info.vader b/test/test_ale_info.vader index 8914507..acf1bfd 100644 --- a/test/test_ale_info.vader +++ b/test/test_ale_info.vader @@ -88,6 +88,7 @@ Before: \ 'let g:ale_sign_warning = ''--''', \ 'let g:ale_statusline_format = [''%d error(s)'', ''%d warning(s)'', ''OK'']', \ 'let g:ale_type_map = {}', + \ 'let g:ale_use_global_executables = v:null', \ 'let g:ale_warn_about_trailing_blank_lines = 1', \ 'let g:ale_warn_about_trailing_whitespace = 1', \]