From 7738363a1f66345bf36b4d09f52a612faf8932df Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 4 Jan 2021 13:33:08 +0900 Subject: [PATCH] Check commmand installable --- autoload/lsp_settings.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim index 738b671..121f26e 100644 --- a/autoload/lsp_settings.vim +++ b/autoload/lsp_settings.vim @@ -368,6 +368,9 @@ function! s:vim_lsp_settings_suggest(ft) abort if empty(l:entry) return endif + if len(l:entry) < 2 + return + endif if lsp_settings#executable(l:entry[0]) return endif