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/typescript | |
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/typescript')
-rw-r--r-- | ale_linters/typescript/tslint.vim | 2 | ||||
-rw-r--r-- | ale_linters/typescript/tsserver.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/typescript/tslint.vim b/ale_linters/typescript/tslint.vim index 6f94fbae..b28f7cee 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 7a155bd9..5eb77dad 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 |