From fd7456fce00d5e9d31e024ae362e4b5c273a965b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ho=CC=88ltje?= Date: Thu, 7 Jun 2018 13:43:08 -0400 Subject: [PATCH] lsp: handle missing "detail" key --- autoload/ale/completion.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 6fa2619b..d8c2b4e2 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -317,7 +317,7 @@ function! ale#completion#ParseLSPCompletions(response) abort \ 'word': l:word, \ 'kind': l:kind, \ 'icase': 1, - \ 'menu': l:item.detail, + \ 'menu': get(l:item, 'detail', ''), \ 'info': get(l:item, 'documentation', ''), \}) endfor