Merge pull request #1640 from docwhat/pr/lsp-handle-missing-details

lsp: handle missing "detail" key
This commit is contained in:
w0rp
2018-06-11 21:33:49 +01:00
committed by GitHub

View File

@@ -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