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 20d1cf3 commit 9962ef9Copy full SHA for 9962ef9
autoload/lsp/omni.vim
@@ -245,6 +245,9 @@ function! lsp#omni#default_get_vim_completion_item(item, ...) abort
245
elseif !empty(get(a:item, 'insertText', ''))
246
" if plain-text insertText, use it.
247
let l:word = a:item['insertText']
248
+ if !empty(l:word)
249
+ let l:word = split(l:word, '\n')[0]
250
+ endif
251
elseif has_key(a:item, 'textEdit')
252
let l:word = lsp#utils#make_valid_word(a:item['label'])
253
endif
0 commit comments