diff options
author | w0rp <devw0rp@gmail.com> | 2018-04-09 19:11:20 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-04-09 19:11:20 +0100 |
commit | 719b790574b6aeb4fc3c956dfbcffa3c3987a668 (patch) | |
tree | d0d773308e97a3002075f9de2348874606b70ed4 /ale_linters/php | |
parent | 3a47413286ff4701898b571aa4b066bd6d17bf3e (diff) | |
download | ale-719b790574b6aeb4fc3c956dfbcffa3c3987a668.zip |
Close #542 - Add an option for disabling running locally installed executables by default
Diffstat (limited to 'ale_linters/php')
-rw-r--r-- | ale_linters/php/langserver.vim | 2 | ||||
-rw-r--r-- | ale_linters/php/phpcs.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/php/langserver.vim b/ale_linters/php/langserver.vim index be2d6ef1..7e1321f9 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 399fbd23..faf8ad55 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', [ |