Show only first line while popup visible (#714)

This commit is contained in:
mattn
2020-02-14 00:51:53 +09:00
committed by GitHub
parent 20d1cf3968
commit 9962ef9ac8

View File

@@ -245,6 +245,9 @@ function! lsp#omni#default_get_vim_completion_item(item, ...) abort
elseif !empty(get(a:item, 'insertText', ''))
" if plain-text insertText, use it.
let l:word = a:item['insertText']
if !empty(l:word)
let l:word = split(l:word, '\n')[0]
endif
elseif has_key(a:item, 'textEdit')
let l:word = lsp#utils#make_valid_word(a:item['label'])
endif