lsp: handle missing "detail" key

This commit is contained in:
Christian Höltje 2018-06-07 13:43:08 -04:00
parent 10a9177b6b
commit fd7456fce0
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ function! ale#completion#ParseLSPCompletions(response) abort
\ 'word': l:word, \ 'word': l:word,
\ 'kind': l:kind, \ 'kind': l:kind,
\ 'icase': 1, \ 'icase': 1,
\ 'menu': l:item.detail, \ 'menu': get(l:item, 'detail', ''),
\ 'info': get(l:item, 'documentation', ''), \ 'info': get(l:item, 'documentation', ''),
\}) \})
endfor endfor