aboutsummaryrefslogtreecommitdiff
path: root/plugin/lsp_settings.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-29 00:21:32 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-29 00:21:32 +0900
commit38c4e67140ee3e37c8c06765e111d00e2d1211dd (patch)
tree07ddee0fe55aa0e76df85eb8d7cb51f026bdfa91 /plugin/lsp_settings.vim
parentc743c433a7b83091c03cea406bd20633662f1847 (diff)
downloadvim-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.vim4
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