diff options
author | Christian Höltje <docwhat@gerf.org> | 2018-06-07 13:43:08 -0400 |
---|---|---|
committer | Christian Höltje <docwhat@gerf.org> | 2018-06-07 13:43:08 -0400 |
commit | fd7456fce00d5e9d31e024ae362e4b5c273a965b (patch) | |
tree | 50055eda7eb69ff89e5911ad38c26e721a575f2e /autoload | |
parent | 10a9177b6b211173660e09ffdbc476532640f398 (diff) | |
download | ale-fd7456fce00d5e9d31e024ae362e4b5c273a965b.zip |
lsp: handle missing "detail" key
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/completion.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |