diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-16 15:13:18 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-16 15:13:18 +0900 |
commit | ec4fc454429d2a5109a6e8487fe71261e521f399 (patch) | |
tree | c6cae1705663d41e04a2f56dab73588cb0517d77 /plugin | |
parent | 5ed5dc7239f76b3aacff15332e9a39e4772543e2 (diff) | |
download | vim-lsp-settings-ec4fc454429d2a5109a6e8487fe71261e521f399.tar.gz vim-lsp-settings-ec4fc454429d2a5109a6e8487fe71261e521f399.tar.bz2 vim-lsp-settings-ec4fc454429d2a5109a6e8487fe71261e521f399.zip |
command/cmd must not be lambda
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/lsp_setup.vim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugin/lsp_setup.vim b/plugin/lsp_setup.vim index 8145708..9deb09f 100644 --- a/plugin/lsp_setup.vim +++ b/plugin/lsp_setup.vim @@ -53,6 +53,9 @@ function! s:vimlsp_installer() abort return '' endif let l:command = s:vimlsp_settings_get(l:setting[0].command, 'cmd', l:setting[0].command) + if type(l:command) == type([]) + let l:command = l:command[0] + endif let l:command = printf('%s/install-%s', s:installer_dir, l:command) if has('win32') let l:command = substitute(l:command, '/', '\', 'g') . '.cmd' @@ -101,7 +104,11 @@ function! s:vimlsp_setting() abort continue endif for l:server in s:settings[l:ft] - if s:executable(s:vimlsp_settings_get(l:server.command, 'cmd', l:server.command)) + let l:command = s:vimlsp_settings_get(l:server.command, 'cmd', l:server.command) + if type(l:command) == type([]) + let l:command = l:command[0] + endif + if s:executable(l:command) let l:script = printf('%s/%s.vim', s:settings_dir, l:server.command) if filereadable(l:script) exe 'source' l:script |