diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-29 00:21:32 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-29 00:21:32 +0900 |
commit | 38c4e67140ee3e37c8c06765e111d00e2d1211dd (patch) | |
tree | 07ddee0fe55aa0e76df85eb8d7cb51f026bdfa91 /plugin/lsp_settings.vim | |
parent | c743c433a7b83091c03cea406bd20633662f1847 (diff) | |
download | vim-lsp-settings-38c4e67140ee3e37c8c06765e111d00e2d1211dd.tar.gz vim-lsp-settings-38c4e67140ee3e37c8c06765e111d00e2d1211dd.tar.bz2 vim-lsp-settings-38c4e67140ee3e37c8c06765e111d00e2d1211dd.zip |
Check command exists
Diffstat (limited to 'plugin/lsp_settings.vim')
-rw-r--r-- | plugin/lsp_settings.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 5284203..51aae02 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -184,7 +184,9 @@ function! s:vimlsp_load_or_suggest(ft) abort endif endif - delcommand LspRegisterServer + if !exists(':LspRegisterServer') + delcommand LspRegisterServer + endif endfunction function! s:load_or_suggest_group_name(ft) abort |