diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 12:27:05 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 12:27:05 +0900 |
commit | 7753414b20aa8473426c4a51f1be647074f0bae8 (patch) | |
tree | 0e56ae148017c0bd5a434bfcce5501866e0a6610 | |
parent | 275f56db0b28b326e6a7fd44f359d50c3c509897 (diff) | |
download | vim-lsp-settings-7753414b20aa8473426c4a51f1be647074f0bae8.tar.gz vim-lsp-settings-7753414b20aa8473426c4a51f1be647074f0bae8.tar.bz2 vim-lsp-settings-7753414b20aa8473426c4a51f1be647074f0bae8.zip |
Define LspInstallServer even if server is alrady installed
-rw-r--r-- | plugin/lsp_settings.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 9c1985d..17fb370 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -109,8 +109,8 @@ function! s:vimlsp_settings_suggest() abort endif if !exists(':LspInstallServer') echomsg 'If you want to enable Language Server, please do :LspInstallServer' - command! -buffer LspInstallServer call s:vimlsp_install_server() endif + command! -buffer LspInstallServer call s:vimlsp_install_server() endfunction function! s:vimlsp_settings_get(name, key, default) abort @@ -167,7 +167,7 @@ function! s:vimlsp_setting() abort exe printf('autocmd FileType %s call s:vimlsp_settings_suggest()', l:ft) endif augroup END - elseif !empty(s:vimlsp_installer()) + else command! -buffer LspInstallServer call s:vimlsp_install_server() endif endfor |