diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-23 16:17:53 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-01-23 16:17:53 +0900 |
commit | 5b2a5d0c277490de465bcc932fa1ed851656ec71 (patch) | |
tree | f04b6578761689e899baa5bc7fce86b16de137f9 | |
parent | b6c8c4443261dc5f5f932143f3ace78c6bcf4923 (diff) | |
download | vim-lsp-settings-5b2a5d0c277490de465bcc932fa1ed851656ec71.tar.gz vim-lsp-settings-5b2a5d0c277490de465bcc932fa1ed851656ec71.tar.bz2 vim-lsp-settings-5b2a5d0c277490de465bcc932fa1ed851656ec71.zip |
Fix checking executables
-rw-r--r-- | plugin/lsp_settings.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 07cc35d..f729453 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -20,7 +20,8 @@ function! s:executable(cmd) abort let l:servers_dir = get(g:, 'lsp_settings_servers_dir', s:servers_dir) let l:paths .= ',' . l:servers_dir . '/' . a:cmd if !has('win32') - return !empty(globpath(l:paths, a:cmd)) + let l:found = globpath(l:paths, a:cmd) + return !empty(l:found) && executable(l:found) endif for l:ext in ['.exe', '.cmd', '.bat'] if !empty(globpath(l:paths, a:cmd . l:ext)) |