summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/completion.vim4
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'