diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 12:29:04 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 12:29:04 +0900 |
commit | 004e826cdcdcb8edfd25d85662e3f5852452460c (patch) | |
tree | e3ba046deda288698b0f861c7dee712b8e2f328f /plugin | |
parent | 7753414b20aa8473426c4a51f1be647074f0bae8 (diff) | |
download | vim-lsp-settings-004e826cdcdcb8edfd25d85662e3f5852452460c.tar.gz vim-lsp-settings-004e826cdcdcb8edfd25d85662e3f5852452460c.tar.bz2 vim-lsp-settings-004e826cdcdcb8edfd25d85662e3f5852452460c.zip |
Define if not defined
Diffstat (limited to 'plugin')
-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 17fb370..7523949 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 - else + elseif !exists(':LspInstallServer') command! -buffer LspInstallServer call s:vimlsp_install_server() endif endfor |