We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67ef09 commit de6ae74Copy full SHA for de6ae74
autoload/lsp/omni.vim
@@ -144,7 +144,7 @@ function! s:get_completion_result(data) abort
144
let l:incomplete = l:result['isIncomplete']
145
endif
146
147
- let l:matches = map(l:items, {_, item -> lsp#omni#get_vim_completion_item(item) })
+ let l:matches = type(l:items) == type([]) ? map(l:items, {_, item -> lsp#omni#get_vim_completion_item(item) }) : []
148
149
return {'matches': l:matches, 'incomplete': l:incomplete}
150
endfunction
0 commit comments