From 38c4e67140ee3e37c8c06765e111d00e2d1211dd Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sun, 29 Dec 2019 00:21:32 +0900 Subject: Check command exists --- plugin/lsp_settings.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin') 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 -- cgit v1.2.3-54-g00ecf