summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-06-11 21:33:49 +0100
committerGitHub <noreply@github.com>2018-06-11 21:33:49 +0100
commit22a9dcd03e3585851c48717c70c7ae7363b6e70c (patch)
tree50055eda7eb69ff89e5911ad38c26e721a575f2e
parent10a9177b6b211173660e09ffdbc476532640f398 (diff)
parentfd7456fce00d5e9d31e024ae362e4b5c273a965b (diff)
downloadale-22a9dcd03e3585851c48717c70c7ae7363b6e70c.zip
Merge pull request #1640 from docwhat/pr/lsp-handle-missing-details
lsp: handle missing "detail" key
-rw-r--r--autoload/ale/completion.vim2
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