diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-23 10:21:09 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-23 10:21:09 +0100 |
commit | 7bf3a749d088964b2ae42e8019dc6a570173d1bf (patch) | |
tree | b57d3e439a56cc4c6885fc963682f50decaba927 /autoload | |
parent | 3e4db9ed5cfc95ee75a2a7df80b54d075bdc7b00 (diff) | |
download | ale-7bf3a749d088964b2ae42e8019dc6a570173d1bf.zip |
#1751 Handle LSP completion results without the 'kind' attribute
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/completion.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/autoload/ale/completion.vim b/autoload/ale/completion.vim index 7b3a0e82..7440f8cd 100644 --- a/autoload/ale/completion.vim +++ b/autoload/ale/completion.vim @@ -336,7 +336,9 @@ function! ale#completion#ParseLSPCompletions(response) abort endif " See :help complete-items for Vim completion kinds - if l:item.kind is s:LSP_COMPLETION_METHOD_KIND + if !has_key(l:item, 'kind') + let l:kind = 'v' + elseif l:item.kind is s:LSP_COMPLETION_METHOD_KIND let l:kind = 'm' elseif l:item.kind is s:LSP_COMPLETION_CONSTRUCTOR_KIND let l:kind = 'm' |