Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 9962ef9

Browse files
authored
Show only first line while popup visible (prabirshrestha#714)
1 parent 20d1cf3 commit 9962ef9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/lsp/omni.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ function! lsp#omni#default_get_vim_completion_item(item, ...) abort
245245
elseif !empty(get(a:item, 'insertText', ''))
246246
" if plain-text insertText, use it.
247247
let l:word = a:item['insertText']
248+
if !empty(l:word)
249+
let l:word = split(l:word, '\n')[0]
250+
endif
248251
elseif has_key(a:item, 'textEdit')
249252
let l:word = lsp#utils#make_valid_word(a:item['label'])
250253
endif

0 commit comments

Comments
 (0)